java-user@lucene.apache.org
[Top] [All Lists]

Re: How to serach in sentence and dispaly the whole sentence

Subject: Re: How to serach in sentence and dispaly the whole sentence
From: Erik Hatcher
Date: Thu, 27 Apr 2006 08:38:38 -0400

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@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>