As far as I know, there's not much at all you can do with StandardAnalyzer
to emulate what's happening on Solr in Lucene. What you might be able to
do is use a different Analyzer, perhaps SimpleAnalyzer would do the trick,
see the API docs in lucene...
Beyond that, you might have to make your own
Sorry to be confusing. I'm actually using both. I use Solr for its web
application features and Lucene for my background searches. In this case,
the issue is with my Lucene side of things.
The analysis feature on the Solr admin page shows the analysis being correct
and wi-fi no longer matches "
I'm a bit confused, this is the Lucene list, but it sounds like you're using
SOLR. If you are, could you post the relevant parts of your schema,
especially the field type definition for the field in question? If you are,
why not just take WordDelimiterFilterFactory out of your field type
definition
Hi,
I am using the StandardAnalyzer, but I am not interested in converting words
like Wi-Fi into "Wi" and "Fi". Rather, "WI" is an important word for my
users (indicating the state of Wisconsin) and I need "WI" to only match the
distinct word.
I know in Solr I can set generateWordParts="0" for my