Re: Payloads with Phrase queries

2009-12-15 Thread Bill Au
Lucene 2.9.1 comes with a PayloadTermQuery: http://lucene.apache.org/java/2_9_1/api/all/org/apache/lucene/search/payloads/PayloadTermQuery.html I have been using that to use the payload as part of the score without any problem. Bill On Tue, Dec 15, 2009 at 6:31 AM, Raghuveer Kancherla < raghuve

Re: Payloads with Phrase queries

2009-12-15 Thread Raghuveer Kancherla
The interesting thing I am noticing is that the scoring works fine for a phrase query like "solr rocks". This lead me to look at what query I am using in case of a single term. Turns out that I am using PayloadTermQuery taking a cue from solr-1485 patch. I changed this to BoostingTermQuery (i read

Re: Payloads with Phrase queries

2009-12-14 Thread Raghuveer Kancherla
Hi, Thanks everyone for the responses, I am now able to get both phrase queries and term queries to use payloads. However the the score value for each document (and consequently, the ordering of documents) are coming out wrong. In the solr output appended below, document 4 has a score higher than

Re: Payloads with Phrase queries

2009-12-10 Thread AHMET ARSLAN
> I was looking through some lucene > source codes and found the following class > org.apache.lucene.search.payloads.PayloadSpanUtil > > There is a function named queryToSpanQuery in this class. > Is this the > preferred way to convert a PhraseQuery to > PayloadNearQuery? queryToSpanQuery method

Re: Payloads with Phrase queries

2009-12-10 Thread Grant Ingersoll
On Dec 10, 2009, at 6:35 AM, Raghuveer Kancherla wrote: > I was looking through some lucene source codes and found the following class > org.apache.lucene.search.payloads.PayloadSpanUtil > > There is a function named queryToSpanQuery in this class. Is this the > preferred way to convert a Phrase

Re: Payloads with Phrase queries

2009-12-10 Thread Raghuveer Kancherla
I was looking through some lucene source codes and found the following class org.apache.lucene.search.payloads.PayloadSpanUtil There is a function named queryToSpanQuery in this class. Is this the preferred way to convert a PhraseQuery to PayloadNearQuery? Also, are there any performance consider

Re: Payloads with Phrase queries

2009-12-10 Thread AHMET ARSLAN
> Hi, > I am looking for a way to use payloads in my search > application. Indexing > data with payloads into Solr is pretty straightforward. > However using the > payloads during search time is a bit confusing. Can anyone > point me in the > right direction to enable payloads on a *PhraseQuery*. I

Payloads with Phrase queries

2009-12-10 Thread Raghuveer Kancherla
Hi, I am looking for a way to use payloads in my search application. Indexing data with payloads into Solr is pretty straightforward. However using the payloads during search time is a bit confusing. Can anyone point me in the right direction to enable payloads on a *PhraseQuery*. I looked at the f