Have a look at the MultifieldQueryParser. It isn't exactly what you
are describing, but should be able to handle it. If you are building
your queries programmatically, you can ask the IndexReader for the
field names using getFieldNames method.
On Mar 26, 2007, at 4:51 AM, Melanie Langlois wrote:
Hi,
I'm wondering if lucene would understand such a query:
content*:mysearch
It's just because I index several translations of my document
contents in addition with common fields, and this separation is
really usefull when an user specify the language in which he wants
to search, but I want to be able to search among all languages if
no option is specified. I could programmatically transform my
content* into several sub queries content-en:mysearch content-
fr:mysearch ... but I'm concerned about the number of conditions it
will generate. So that would be cool if lucene automatically look
into all concerned fields.
Thanks,
Mélanie
--------------------------
Grant Ingersoll
Center for Natural Language Processing
http://www.cnlp.org
Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/
LuceneFAQ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]