Thank you Otis for the answer.
I've played around with the solr admin query interface and I've managed
to confuse myself even more.
If I query without the quotes solr seems to form two parsedqueries
+((DisjunctionMaxQuery(( -first word stuff- )) DisjunctionMaxQuery((
-second word stuff- ))
and then based on the query give out results which have -both- words.
Default operator is OR in schema.xml.
With quotes the query is different with only one DisjunctionMaxQuery in
parsedquery but the results (of which there are more than double) have
pages in them
which have only one of the words (granted these results are much lower
than the ones with both words)
I set qs to 0. (and I even played with pf and ps before commenting them
out since they relate to automaticed phrased queries?)
Best regards,
Lauri
PS. I am not unhappy with the results so to speak but perplexed and
don't know how to explain this number discrepancy to project members
other than
"Dismax is different."
On 10/19/2011 04:28 PM, Otis Gospodnetic wrote:
Lauri,
Start with adding&debugQuery=true to your URL calls to Solr and look at how the
queries are getting rewritten to understand what is going on. What you are seeing
is actually expected, so if you want your phrase query to be a strict phrase query,
just use standard request handler, not dismax.
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
________________________________
From: Hyttinen Lauri<lauri.hytti...@stat.fi>
To: solr-user@lucene.apache.org
Sent: Wednesday, October 19, 2011 5:02 AM
Subject: Dismax and phrases
Hello,
I've inherited a solr-lucene project which I continue to develop. This
particular SOLR (1.4.1) uses dismax for the queries but I am getting some
results that I do not understand. Mainly when I search for two terms I get some
results however when I put quotes around the two terms I get a lot more results
which goes against my understanding of what should happen ie. a lesser set of
results. Where should I start digging for the answer? solrconfiq.xql or some
other place?
Best regards,
Lauri Hyttinen
--
Lauri Hyttinen
Tietopalvelusuunnittelija
Tilastokeskus
Yksikkö
Käyntiosoite: Työpajankatu 13, 00580 Helsinki
Postiosoite: PL 3 A, 00022 Tilastokeskus
puh. 09 1734 0000
lauri.hytti...@tilastokeskus.fi
www.tilastokeskus.fi