Ok, so more than one keyword can be stored in a keyword field.  Interesting!

Thanks, 

Doug 

-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 30, 2005 3:39 PM
To: java-user@lucene.apache.org
Subject: Re: Indexing multiple keywords in one field?


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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> 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]




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

Reply via email to