On Dec 17, 2008, at 9:26 AM, Rajiv2 wrote:
Because, the search term is provided by a user, and that user would
explicity
have to put quotes around "marietta ga" when I beleive the search
text as it
is : fleming roofing inc., marietta ga -- should score higher for
"marietta
ga"
Just
Well, you could also do a simple test of removing IDF from the scoring
equation and seeing if the query then reacts the way you want it to.
Simply write your own custom similarity that does this, and test out to
see how it works.
Handily enough, I've already done this, so here's some code you
ound
>> "marietta ga" which forces the query parser to make a phrase query.
>
> Why not?
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail:
On Dec 16, 2008, at 8:19 PM, Rajiv2 wrote:
Hello,
I'm using the default lucene Queryparser on the search text : fleming
roofing inc., marietta ga
Also, I don't want to modify the search text by putting quotes around
"marietta ga" which forces the query parser to make a phrase query.
Why no
g ga" even though "marietta ga" is
> >> closer
> >> together in the search text. I'm assuming this is because of the
> >> "fleming"
> >> has a higher idf than marietta. What should I change in the way i'm
> >&g
arch text. I'm assuming this is because of the
>> "fleming"
>> has a higher idf than marietta. What should I change in the way i'm
>> querying
>> or indexing to make this happen?
>>
>> Also, I don't want to modify the search text by putting quotes
an marietta. What should I change in the way i'm
> querying
> or indexing to make this happen?
>
> Also, I don't want to modify the search text by putting quotes around
> "marietta ga" which forces the query parser to make a phrase query.
>
> thanks,
>
search text by putting quotes around
"marietta ga" which forces the query parser to make a phrase query.
thanks,
Rajiv
--
View this message in context:
http://www.nabble.com/IDF-scoring-issue-tp21045385p21045385.html
Sent fro