lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Waldura" <>
Subject RE: search through all fields
Date Mon, 16 Jul 2007 21:41:51 GMT
Often documents can be divided in "metadata" and "contents" sections. Say
you're indexing Web pages, you could index them with HEAD data all in one
field, and the BODY content in another. While also creating separate fields
for every HEAD field, e.g. TITLE etc.

At search time, you rewrite every query to become "+head:(query)
+body:(query)" using MultiFieldQueryParser. This way you don't have to
create an "all" field that contains everything, head + body.

I will increase your index size, no doubt. Might increase indexing time too.


-----Original Message-----
From: Mohammad Norouzi [] 
Sent: Sunday, July 15, 2007 9:40 PM
Subject: Re: search through all fields

On 7/14/07, Grant Ingersoll <> wrote:
> I think he means index all your different fields into a single field 
> named "all".  Not sure what makes it special, it is just like any 
> other field.

but that really impossible ! because I have near millions records to be
indexed so this job will decrease the time of indexing and increase the
index size

see my blog: another in Persian:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message