How to use 'PhraseQuery' with Fuzzy?!

2014-09-22 Thread teko
Hello, Well, I need do a query to locate Phrases like that: Petruz Augusto Petruz Auguzto Petrs Augusto ... Well, in a single word, I can use fuzzy, but, how I can use it in phrases? I think that I need use PhraseQuery, but, I never get any result.. (code below). Thanks [code] IndexReader reader

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

2014-05-16 Thread teko
Wow man!! Forget what I said before!! I did tries using your method... well, to generate the index, really, it's still a bit more slow (1/2 minutes more), but, in query... man, It's work very well, and, fast, very fast!! Really, here is so fast that what generate the bottleneck, is the write insi

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

2014-05-16 Thread teko
Emanuel Buzek, Well, I tried using the method 'ShingleFilter' first, and I thought it worked well, but, at last, it still did not work like I want.. So, I tried use NGram... I created a new analyzer to use it, and, I did a test... Well, it works, but, I still need do some manually validation to e

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

2014-05-15 Thread teko
*Emanuel Buzek, Can you explain how you use NGram?? Did you create a Analyzer? is it?? Sorry, but, I really don't have a great knowledge about Lucene... Thank advance! -- View this message in context: http://lucene.472066.n3.nabble.com/SOLVED-How-to-locate-a-Phrase-inside-text-like-a-Browser-

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

2014-05-13 Thread teko
wow!! Thanks Michael!! It's works perfectly! thanks man!! -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-locate-a-Phrase-inside-text-like-a-Browser-text-searcher-tp4135075p4135449.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. ---

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 ' Good