You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by palexv <pa...@gmail.com> on 2008/05/16 11:32:30 UTC
Search by first term in field.
I have tokenized index.
I need to do search to search only by prefix.
So if I enter "java", then I need to get "java developer", but NOT
"developed in java".
Can I do this using Lucene with tokenized field?
--
View this message in context: http://www.nabble.com/Search-by-first-term-in-field.-tp17270876p17270876.html
Sent from the Lucene - General mailing list archive at Nabble.com.
RE: Search by first term in field.
Posted by Steven A Rowe <sa...@syr.edu>.
Hi palexv,
SpanFirstQuery might do what you want:
<http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/search/spans/SpanFirstQuery.html>
Steve
On 05/16/2008 at 5:32 AM, palexv wrote:
>
> I have tokenized index. I need to do search to search only by prefix. So
> if I enter "java", then I need to get "java developer", but NOT
> "developed in java". Can I do this using Lucene with tokenized field? --
> View this message in context:
> http://www.nabble.com/Search-by-first-term-in-field.-tp1727087
> 6p17270876.html Sent from the Lucene - General mailing list archive at
> Nabble.com.
>
>