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: How to serach in sentence and dispaly the whole sentence
Date Thu, 27 Apr 2006 12:38:38 GMT

On Apr 26, 2006, at 6:20 PM, anton feldmann wrote:
> Are the names of a field in a document unique or can i make a field  
> with the name "sentence" for each sentence in an text document?

The names of a field in a document are unique, but you can add  
multiple instances of the same field name.  You can retrieve the  
array of them, if they are stored, as well.  You do have to be  
careful though - a phrase query can match across these field  
instances unless you specify a positional gap between them large  
enough to prevent it.

	Erik


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