lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshum <ansh...@gmail.com>
Subject Re: Search in multiple indexes which have differnt field name
Date Mon, 14 Feb 2011 18:25:30 GMT
Hi Liat,
You could use open a multi/parallelmultisearcher on the indexes that you
have and then construct an OR query e.g. (contents:A OR text:A)
I am assuming that the field names do not overlap. If that is not the case
then you'd need another solution.

--
Anshum Gupta
http://ai-cafe.blogspot.com


On Mon, Feb 14, 2011 at 11:52 PM, liat oren <oren.liat@gmail.com> wrote:

> Hey All,
>
> I try to construct a boolean query that has to run on 3 different set of
> indexes:
> in two of them, it should query a field name "contents" and in one of them,
> it should query a field named "text".
> How can I use MultiSearcher to support this structure?
>
> Thanks a lot,
> Liat
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message