Changeset 29987

Show
Ignore:
Timestamp:
22.06.2015 17:29:39 (4 years ago)
Author:
ak19
Message:

Adjustments to comments.

Location:
gs3-extensions/solr/trunk/src/src/java/org/greenstone
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/util/SolrQueryWrapper.java

    r29986 r29987  
    435435                    // solr returns each term's totaltermfreq, ttf, at the document level, even though  
    436436                    // the ttf is the same for each document. So extract this information just for the first document 
     437                    // https://wiki.apache.org/solr/FunctionQuery#docfreq 
     438 
    437439                    if(i == 0) { // first document, all others repeat the same termfreq data 
    438440                        boolean foundTermInfo = false; 
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/solrserver/Greenstone3SearchHandler.java

    r29986 r29987  
    8888 
    8989    // This recursive method calls setRewriteMethod on any MultiTermQueries inside the given (boolean)query, 
    90     // since by default PrefixQueries get rewritten to ConstantScoreQueries and don't get expanded. 
     90    // since by default PrefixQueries like farm* get rewritten to ConstantScoreQueries and don't get expanded. 
    9191    // Calling setRewriteMethod on each MultiTermQuery in query here is useful to later ensure that any  
    92     // MultiTermQueries like PrefixQueries and WildcareQueries can get expanded,  
     92    // MultiTermQueries like PrefixQueries and WildcardQueries can get expanded,  
    9393    // including when embedded in BooleanQueries. 
    9494    protected Query getSimplified(Query query)