Your "bf" parameter is not using the proper syntax. It is supposed to be a function query:

http://wiki.apache.org/solr/ExtendedDisMax#bf_.28Boost_Function.2C_additive.29

Or maybe you wanted to use "bq"? But that takes terms, not fields.

There have been changes to EdgeNGramFilterFactory. Add debugQuery=true to your query request to see what query gets generated. Generally, your should do the ngram filtering at index time only and not do it at query time.

My suspicion is that the edge ngram filter generated an "OR" of "n" and other edge ngrams of "nokia" and the "n" matched the "n" of "nikon".

In some cases the have been bugs in queries and filters that were fixed in 4.x and your app may have been dependent on one of the bugs!

-- Jack Krupansky

-----Original Message----- From: vehovmar
Sent: Thursday, August 01, 2013 6:35 AM
To: solr-user@lucene.apache.org
Subject: Solr 4.2.1 update to 4.3/4.4 problem

I have serious problems when upgrading to new solr 4.3/4.4 Search results do
not make sense. I reindexed everithing and I'm still getting wierd result. I
have pretty complicated config, using edismax requestHandler with boosting

<str name="qf">name^2.0 man^1.0</str>
<str name="pf">name^2.0 man^1.0</str>
<str name="bf">users^2 shops^1.5</str>


Schema: (same for "query")
analyzer type="index">
       <tokenizer class="solr.WhitespaceTokenizerFactory"/>
       <filter class="solr.StopFilterFactory" ignoreCase="true"
words="hce_stopwords.txt" enablePositionIncrements="true" />
       <filter class="solr.SynonymFilterFactory"
synonyms="hce_synonyms.txt" ignoreCase="true" expand="false"/>
       <filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"
splitOnNumerics="1" />
       <filter class="solr.ICUFoldingFilterFactory"/>
   <filter class="solr.EdgeNGramFilterFactory" minGramSize="1"
maxGramSize="15" side="front" />
     </analyzer>



I search for "nokia" and first result is "Nikon D5100", what changes so
dramatically?? Same config works great for 4.2.1



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-2-1-update-to-4-3-4-4-problem-tp4081896.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to