hibernate - Why Document Fields Still Have Uppercase Characters after Using LowerCaseFilterFactory? -


i think analyzer should apply both indexing , search processes, correct? if true, why document fields still have uppercase characters after using lowercasefilterfactory filter in analyzer?

i use luke check document fields.

here related code.

@indexed @analyzerdef(name = "remarksanalyzer", tokenizer = @tokenizerdef(factory = standardtokenizerfactory.class) , filters = {         @tokenfilterdef(factory = lowercasefilterfactory.class),         @tokenfilterdef(factory = snowballporterfilterfactory.class, params = {                 @parameter(name = "language", value = "english") }) }) public class book {     ...     @field(store = store.yes)     @analyzer(definition = "remarksanalyzer")     private string remarks;     ... } 

did try search on index lowercased words? i'm pretty sure work.

the fact is, if use store=store.yes, store unanalyzed string in index , analyzed tokens. might allow use highlighter instance: highlighted string, need original value.

luke displays stored value , not tokens indexed.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -