Lucene Prefix Search for Indexed data through Standard Analyzer
Asked Answered
F

1

1

I am creating index using Lucene 3.6.0 for Java. They are built using Standard Analyzer. Is there any way I can perform prefix search with lucene i.e. i want the results to start with the specified search string without changing the analyzer used for indexing?

Many thanks

Flavia answered 20/5, 2012 at 7:56 Comment(0)
C
2

If you mean queries like "work*" to find "work", "worker", "working", etc. you can already perform those queries using text analyzed with the Standard Analyzer.

documented here: http://lucene.apache.org/core/3_6_0/queryparsersyntax.html#Wildcard%20Searches

Chancelor answered 20/5, 2012 at 22:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.