On Tue, 16 Mar 2004 08:11:34 -0500, Grant Ingersoll said:
>
> You can use the MultiFieldQueryParser, which will generate a query against all
of the fields you
> specify, or you could index all of your documents into one or two common
fields and search
> against them.  Since you have a lot of fields, I would guess the latter is the
better choice.
>

Don't you mean "add one or two common fields to all your documents"? Or am I
mistaken.

Anyway, I believe adding of this common field constitutes a best-practice, since
you definitely need these fields if one wishes to perform a date-range-only
search.

Would probably be a good idea to start a best-practices page in the Wiki.

K

>
>>>> [EMAIL PROTECTED] 03/16/04 07:56AM >>>
> In QueryParser.parse method I must give which is the default field.
>
> Does this means ttah non-adressed queris are executed only over
> this field?
>
> The main question is:
> How I can search in all fields in all documents in the index?
> Note that I don't know field names, there can be thousands field
> names in all documnets.
>
> 10x in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to