lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Wondering about results from PhraseQuer
Date Thu, 03 May 2007 21:49:45 GMT
: the scenario, understand this that user runs a search for title which has
: pretty common terms such as "how do I update" {all of the words appears
: 1000s of times in indexes } and they want to search "prison" the last term
: appears not more than 1 or 2 times across the indexes. Now I have the
: problem, if I try to run phrase query on this I get zero results and if I

if the word "rpison" doesn't appear anywhere near the words "how do i"
then a phrase search on "how do i prison" isn't going to find any
documents.  perhaps you should search on...

	+"how do i" +prison

..which will only return docs that match the phrase "how do i" and also
contain the word prison.

: 0.0 = fieldWeight(subject_t:"how do i prison" in 9268), product of:
:   0.0 = tf(phraseFreq=0.0)
:   18.508762 = idf(subject_t: how=2225 do=3359 i=4918 prison=4)
:   0.5 = fieldNorm(field=subject_t, doc=9268)

this would be my point before ... that phrase does not appear in the
document (hence the tf is zero)



-Hoss


Mime
View raw message