lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Indexing multiple keywords in one field?
Date Mon, 30 May 2005 19:39:08 GMT

On May 30, 2005, at 2:06 PM, Doug Hughes wrote:

>
> Hoss,
>
> I see what you're saying, but that seems primarily beneficial when  
> you know
> the structure and size of your data ahead of time.  For instance,  
> any of the
> HTML documents I'm indexing can have any number of links, from 0 to  
> 100,
> realistically.  If I place each of those links in separate keywords  
> field,
> how would I know which field(s) to search to find documents with  
> links to a
> specific articles?

The idea is to use Field.Keyword multiple times, but use the same  
field name each time (but different values).

     Erik



>
> Thanks,
>
> Doug
>
> -----Original Message-----
> From: hossman@hal.rescomp.berkeley.edu
> [mailto:hossman@hal.rescomp.berkeley.edu] On Behalf Of Chris Hostetter
> Sent: Sunday, May 29, 2005 8:39 PM
> To: java-user@lucene.apache.org
> Subject: RE: Indexing multiple keywords in one field?
>
>
> in general, if you've got data in an easily delimited format, it  
> probably
> makes more sense to parse the data youreslf (as you said, you  
> already had an
> array of URLs) and skip analysis altogether -- just add the  
> individual items
> as Field.Keywords (or otherwise un-tokenized Fields)
>
> analysis is primarily usefull when you need to find terms in free  
> text.
> if your data is already structured, take advantage of the structure.
>
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
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