Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Multiterms query and payloads

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


maurodragoni at gmail

Oct 26, 2009, 7:25 AM

Post #1 of 3 (392 views)
Permalink
Multiterms query and payloads

Hi to everyone,
I started to use payloads in my indexes.
However, I didn't find a class that permits to perform queries using
more than one term.
The only way that works is to use the BoostingTermQuery class, but by
using this class, I can search only one term a time.

Does exist a way to do a multiterms search or I have to implement a
workaround that aggregates the results of single term searches?
Any other suggestions are accepted.

Thanks to everyone.

--
Dott. Mauro Dragoni
Ph.D. Student Università di Milano, Italy

My Business Site: http://www.dragotechpro.com
My Research Site: http://www.genalgo.com


Confidentially Notice. This electronic mail transmission may contain
legally privileged and/or confidential information. Do not read this,
if you are not the person named to.
Any use, distribution, copying or disclosure by any other person is
strictly prohibited.
If you received this transmission in error, please notify the sender
and delete the original transmission and its attachments without
reading or saving it in any manner.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


gsingers at apache

Oct 26, 2009, 7:35 AM

Post #2 of 3 (373 views)
Permalink
Re: Multiterms query and payloads [In reply to]

In 2.9, there is now the PayloadNearQuery, which might help you.
Otherwise, the PayloadTermQuery is still a Query and can be used in a
BooleanQuery. Beyond that, you may need to write what you need, since
it doesn't exist yet.


On Oct 26, 2009, at 10:25 AM, Mauro Dragoni wrote:

> Hi to everyone,
> I started to use payloads in my indexes.
> However, I didn't find a class that permits to perform queries using
> more than one term.
> The only way that works is to use the BoostingTermQuery class, but by
> using this class, I can search only one term a time.
>
> Does exist a way to do a multiterms search or I have to implement a
> workaround that aggregates the results of single term searches?
> Any other suggestions are accepted.
>
> Thanks to everyone.
>
> --
> Dott. Mauro Dragoni
> Ph.D. Student Università di Milano, Italy
>
> My Business Site: http://www.dragotechpro.com
> My Research Site: http://www.genalgo.com
>
>
> Confidentially Notice. This electronic mail transmission may contain
> legally privileged and/or confidential information. Do not read this,
> if you are not the person named to.
> Any use, distribution, copying or disclosure by any other person is
> strictly prohibited.
> If you received this transmission in error, please notify the sender
> and delete the original transmission and its attachments without
> reading or saving it in any manner.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


maurodragoni at gmail

Oct 27, 2009, 7:19 AM

Post #3 of 3 (356 views)
Permalink
Re: Multiterms query and payloads [In reply to]

Thanks for the advice...
I watch in the documentation, but I saw that the PayloadTermQuery
accept only one term a time... however, samething might be done with
the PayloadNearQuery.


On Mon, Oct 26, 2009 at 3:35 PM, Grant Ingersoll <gsingers [at] apache> wrote:
> In 2.9, there is now the PayloadNearQuery, which might help you.  Otherwise,
> the PayloadTermQuery is still a Query and can be used in a BooleanQuery.
>  Beyond that, you may need to write what you need, since it doesn't exist
> yet.
>
>
> On Oct 26, 2009, at 10:25 AM, Mauro Dragoni wrote:
>
>> Hi to everyone,
>> I started to use payloads in my indexes.
>> However, I didn't find a class that permits to perform queries using
>> more than one term.
>> The only way that works is to use the BoostingTermQuery class, but by
>> using this class, I can search only one term a time.
>>
>> Does exist a way to do a multiterms search or I have to implement a
>> workaround that aggregates the results of single term searches?
>> Any other suggestions are accepted.
>>
>> Thanks to everyone.
>>
>> --
>> Dott. Mauro Dragoni
>> Ph.D. Student Università di Milano, Italy
>>
>> My Business Site: http://www.dragotechpro.com
>> My Research Site: http://www.genalgo.com
>>
>>
>> Confidentially Notice. This electronic mail transmission may contain
>> legally privileged and/or confidential information. Do not read this,
>> if you are not the person named to.
>> Any use, distribution, copying or disclosure by any other person is
>> strictly prohibited.
>> If you received this transmission in error, please notify the sender
>> and delete the original transmission and its attachments without
>> reading or saving it in any manner.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
>> For additional commands, e-mail: java-user-help [at] lucene
>>
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
>
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using
> Solr/Lucene:
> http://www.lucidimagination.com/search
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>
>



--
Dott. Mauro Dragoni
Ph.D. Student at Università di Milano, Italy

My Business Site: http://www.dragotechpro.com
My Research Site: http://www.genalgo.com


Confidentially Notice. This electronic mail transmission may contain
legally privileged and/or confidential information. Do not read this,
if you are not the person named to.
Any use, distribution, copying or disclosure by any other person is
strictly prohibited.
If you received this transmission in error, please notify the sender
and delete the original transmission and its attachments without
reading or saving it in any manner.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.