Some ways that fewer docs might be returned by query elevation:

1. The "excude" option: exclude="true" in the xml file.
2. The "exclusive" request parameter: &exclusive=true in the URL. (Certainly not your case.) 3. The "exclusive" request parameter default set to "true" in "defaults" for the "/elevate" request handler in solrconfig. 4. Some other query-related parameters (e.g., "qf") are different between your "/select" and "/elevate" request handlers

Try adding &enableElevation=false to your URL for "/elevate", which should show you whether query elevation itself is affecting the number of docs, or if it must be some other parameters that are different between the two request handlers.

-- Jack Krupansky

-----Original Message----- From: roxy.noord...@wwecorp.com
Sent: Friday, May 04, 2012 3:21 PM
To: solr-user@lucene.apache.org
Subject: elevate vs. select numFound results

I need help understanding the difference in the numFound number in the result
when I execute two queries against my solr instance, one with the elevation
and one without. I have a simple elevate.xml file created and working and am
searching for terms that are not meant to be elevated.

Elevate query
example.com:8080/solr/elevate?q=dwayne+rock+johnson&wt=xml&sort=score+desc&rows=1
 for this the numFound is 125 in the result element of the XML

Select query
example.com:8080/solr/select?q=dwayne+rock+johnson&wt=xml&sort=score+desc&rows=1
 for this the numFound is 154 in the result element of the XML

For many (most all) of my queries the numFound results are the same (both
with elevated query strings and with strings not in elevate.xml), but this
one is very different.

Should they be the same? Any idea what could make them different?
Thank you.


--
View this message in context: http://lucene.472066.n3.nabble.com/elevate-vs-select-numFound-results-tp3963200.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to