Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/search/solr/business/field/FieldDAO.java 90
fr/paris/lutece/plugins/search/solr/business/field/FieldDAO.java 178
            int i = 0;
            daoUtil.setInt( ++i, field.getIdField( ) );
            daoUtil.setString( ++i, field.getName( ) );
            daoUtil.setString( ++i, field.getLabel( ) );
            daoUtil.setString( ++i, field.getDescription( ) );
            daoUtil.setBoolean( ++i, field.getIsFacet( ) );
            daoUtil.setBoolean( ++i, field.getEnableFacet( ) );
            daoUtil.setBoolean( ++i, field.getIsSort( ) );
            daoUtil.setBoolean( ++i, field.getEnableSort( ) );
            daoUtil.setBoolean( ++i, field.getDefaultSort( ) );
            daoUtil.setDouble( ++i, field.getWeight( ) );
            daoUtil.setInt( ++i, field.getFacetMincount( ) );
            daoUtil.setString( ++i, field.getOperator( ) );
            daoUtil.executeUpdate( );
Fichier Ligne
fr/paris/lutece/plugins/search/solr/business/SolrSearchEngine.java 357
fr/paris/lutece/plugins/search/solr/business/SolrSearchEngine.java 660
            }
        }

        // Treat HttpRequest
        // FacetQuery
        if ( facetQueries != null )
        {
            for ( String strFacetQuery : facetQueries )
            {
                if ( isComplexFacetQuery(strFacetQuery) )
                {
                    query.addFilterQuery( strFacetQuery );
                }
                else
                {
                    String [ ] myValues = strFacetQuery.split( ":", 2 );
                    if ( myValues != null && myValues.length == 2 )
                    {
                        myValuesList = getFieldArrange( myValues, myValuesList );
                    }
                }
            }

            for ( Entry<Field, List<String>> entry : myValuesList.entrySet( ) )
            {
                Field tmpFieldValue = entry.getKey( );
                List<String> strValues = entry.getValue( );
                String strFacetString = "";
                if ( CollectionUtils.isNotEmpty( strValues ) )
                {
                    strFacetString = extractQuery( strValues, tmpFieldValue.getOperator( ) );
                    if ( isFieldDate( tmpFieldValue.getName( ) ) )
                    {
                        strFacetString = strFacetString.replaceAll( "\"", "" );
                    }