lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: solre scores remains same for exact match and nearly exact match
Date Thu, 04 Apr 2013 12:34:25 GMT
The simple way to write the query:
q=subject:session subject:management subject:in subject:php

Would be:
q=subject:(session management in php)

Of course, edismax is usually a better way to go in general.

-- Jack Krupansky

-----Original Message----- 
From: Andre Bois-Crettez
Sent: Thursday, April 04, 2013 4:52 AM
To: solr-user@lucene.apache.org
Subject: Re: solre scores remains same for exact match and nearly exact 
match


On 04/03/2013 07:22 AM, amit wrote:
> Below is my query
> http://localhost:8983/solr/select/?q=subject:session management in
> php&fq=category:[*%20TO%20*]&fl=category,score,subject
>
You specify that you want "session" to appear in field "subject", but
the other tokens only match to the default search field. Which one did
you specify in your schema ?

It is probable you actually wanted to do :

q=subject:session subject:management subject:in subject:php

Or written in a better way, specify Default query Field in your url :

q=session management in php&df=subject

Or even better, use eDisMax if you need to search across multiple fields at 
once with&qf=filed1,filed2,field3 :
http://wiki.apache.org/solr/ExtendedDisMax



André

Kelkoo SAS
Société par Actions Simplifiée
Au capital de € 4.168.964,30
Siège social : 8, rue du Sentier 75002 Paris
425 093 069 RCS Paris

Ce message et les pièces jointes sont confidentiels et établis à l'attention 
exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce 
message, merci de le détruire et d'en avertir l'expéditeur. 


Mime
View raw message