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.

--Renaud
 

-----Original Message-----
From: Mohammad Norouzi [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 15, 2007 9:40 PM
To: java-user@lucene.apache.org
Subject: Re: search through all fields

On 7/14/07, Grant Ingersoll <[EMAIL PROTECTED]> 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

--
Regards,
Mohammad
--------------------------
see my blog: http://brainable.blogspot.com/ another in Persian:
http://fekre-motefavet.blogspot.com/



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

Reply via email to