How to locate a Phrase inside text (like a Browser text searcher)

2014-05-11 Thread teko
Hi, someone can help me with it?? I need do a search to locate a phrase inside text, but, I need locate this phrase on texts like that: 'John Mail' - phrase I want locate ' Good Morning John Mail how are you? ' I need find this phrase here ' Good MorningJohn Mail how are you? ' here too '

Re: How to locate a Phrase inside text (like a Browser text searcher)

2014-05-11 Thread Jose Carlos Canova
try to use the lucene wildcard. *John*Mail* The analyzer is just how you want the segment terms on your index. the query parser is how you tokenize the terms that that you want to query against the index (something like that). But lucene allows you use the wild card to handle with other cases

Re: How to locate a Phrase inside text (like a Browser text searcher)

2014-05-11 Thread Jack Krupansky
The word delimiter filter can help for MorningJohn by setting its option to split on case change. You might be able to handle Mailhow using the DictionaryCompoundWordTokenFilter, but that requires that you create a complete dictionary of terms that can split off. That's not very practical.