Re: Possible to use quotes in dismax qf?

2011-08-03 Thread Erick Erickson
Did you look at phrase fields (pf) in dismax?

Best
Erick

On Thu, Jul 28, 2011 at 11:26 AM, O. Klein kl...@octoweb.nl wrote:
 I removed the post as it might confuse people.

 But because of analysers combining 2 words in a phrase query using shingles
 and positionfilter and the usage of dismax, I need q to be the original
 query plus the original query as phrasequery. That way the combined words
 are also highlighted and do I get the results I need.

 qf is not the place to do this it seems though. Any way to do this in Solr?

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Re-Possible-to-use-quotes-in-dismax-qf-tp3206891p3206986.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Possible to use quotes in dismax qf?

2011-07-28 Thread Juan Grande
Hi,

You can use the pf parameter of the DismaxQParserPlugin:
http://wiki.apache.org/solr/DisMaxQParserPlugin#pf_.28Phrase_Fields.29

This parameter receives a list of fields using the same syntax as the qf
parameter. After determining the list of matching documents,
DismaxQParserPlugin will boost the docs where the terms of the query match
as a phrase in the one of those fields. You can also use the ps field to set
a phrase slop and boost docs where the terms appear in close proximity
instead of as an exact phrase.

Regards,

*Juan*



On Thu, Jul 28, 2011 at 11:00 AM, O. Klein kl...@octoweb.nl wrote:

 I want to do a dismax search to search for original query and this query as
 a
 phrasequery:

 q=sail boat needs to be converted to dismax query q=sail boat sail boat

 qf=title^10 content^2

 What is best way to do this?

 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Possible-to-use-quotes-in-dismax-qf-tp3206762p3206762.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Possible to use quotes in dismax qf?

2011-07-28 Thread Jonathan Rochkind
It's not clear to me why you would try to do that, I'm not sure it makes 
a lot of sense.


You want to find all documents that have sail boat as a phrase AND 
have sail somewhere in them AND have boat somewhere in them?  That's 
exactly the same as just all documents that have sail boat as a phrase 
-- such documents will neccesarily include sail and boat, right?  So 
why not just ask for q=sail boat?


What are you actually trying to do?

Maybe dismax 'pf', which relevancy boosts documents which have your 
input as a phrase, si what you really want?  Then you'd just search for 
q=sail boat, but documents that included sail boat as a phrase 
would be boosted, at the boost you specify.


On 7/28/2011 10:00 AM, O. Klein wrote:

I want to do a dismax search to search for original query and this query as a
phrasequery:

q=sail boat needs to be converted to dismax query q=sail boat sail boat

qf=title^10 content^2

What is best way to do this?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Possible-to-use-quotes-in-dismax-qf-tp3206762p3206762.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Possible to use quotes in dismax qf?

2011-07-28 Thread O. Klein
I removed the post as it might confuse people.

But because of analysers combining 2 words in a phrase query using shingles
and positionfilter and the usage of dismax, I need q to be the original
query plus the original query as phrasequery. That way the combined words
are also highlighted and do I get the results I need.

qf is not the place to do this it seems though. Any way to do this in Solr?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Re-Possible-to-use-quotes-in-dismax-qf-tp3206891p3206986.html
Sent from the Solr - User mailing list archive at Nabble.com.