You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by hsp <pi...@ibest.com.br> on 2016/02/03 19:56:39 UTC

Re: Phrase searches not working with BrazilianAnalizer

Some help, no?



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Phrase-searches-not-working-with-BrazilianAnalizer-tp4663594p4663602.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: Phrase searches not working with BrazilianAnalizer

Posted by hsp <pi...@ibest.com.br>.
Since noone could help me ;-) , 

I am just posting here to let you know what I did to solve my "problem".

Last week I tested with a hint based in

http://lucene.472066.n3.nabble.com/Why-PhraseQuery-translate-stopwords-to-quot-quot-td4105761.html#a4105887
<http://lucene.472066.n3.nabble.com/Why-PhraseQuery-translate-stopwords-to-quot-quot-td4105761.html#a4105887http://>  

and did alter the lines in method

 BrazilianAnalyzer.createComponents()

  //result = new StopFilter(matchVersion, result, stopwords);
  // to
  result = new StopFilter(false, result, stopwords, false);


And with this the index is now searching as expected, independently if there
is/isn't a stop word betwen terms in original phrase indexed.

If anyone knows about some consequences by doing this "fix" , please let me
know.

Best Regards!
Helio. 

Output in my test code after alter the code in BrazilianAnalyzer




--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Phrase-searches-not-working-with-BrazilianAnalizer-tp4663594p4663675.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.