lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Waldura" <renaud.wald...@library.ucsf.edu>
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.

--Renaud
 

-----Original Message-----
From: Mohammad Norouzi [mailto:mnrz57@gmail.com] 
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 <grant.ingersoll@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message