lucene.net - How to index state abbreviations with the lucene standard analyzer? -


i'm having trouble indexing state abbreviation codes such in, or lucene .net. if use standard analyzer when indexing, cannot retreive documents these state abbreviations. if use simple analyzer when indexing, can retreive documents based on these abbreviations, other queries such zipcodes indexed strings no longer work.

any suggestions on best practice type of lucene dilemna appreciated.

thanks

thanks i4v, post same issue. resolved changing code from

this duplicate question. after reading post

_standardanalyzer = new lucene.net.analysis.standard.standardanalyzer(lucene.net.util.version.lucene_30  

to:

this duplicate question. after reading post

_standardanalyzer = new lucene.net.analysis.standard.standardanalyzer(lucene.net.util.version.lucene_30, new hashset<string>()); 

Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -