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/01/12 18:43:55 UTC

Re: Phrase querie searches not working in portuguese

After almost a year without phrase search in my repository, I am stuck still
without it...

If anyone can help...
The fact is:
The phrase search works if I put a node with:

- The quick brown fox jumps over the lazy dog.

But not work if I put a node with:

- O animal raposa marron pulou rapida e loucamente sobre o cachorro
dorminhoco

The difference between the two phrases is only that one is in english and
the other is in portuguese...

Making search:
//(*,nt:folder)[jcr:contains(.,'"The quick brown fox jumps over the lazy
dog."')]
return one node, ok

Making search:
//(*,nt:folder)[jcr:contains(.,'"The quick brown jumps over the lazy
dog."')]
empty return, ok

Making search:
//(*,nt:folder)[jcr:contains(.,'"O animal raposa marron pulou rapida e
loucamente sobre o cachorro dorminhoco"')]
empty return, NOT OK!!!! 

I can not figure out what is the crazy thing I am doing wrong...
Please, help me with some directions, 

I am using in analyzer
BrazilianAnalyzer
BrazilianStemFilter
BrazilianStemmer

And in BrazilianAnalyzer, thats the method createComponents...



Would be this piece of code the guilty?

Best Regards







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

Re: Phrase querie searches not working in portuguese

Posted by hsp <pi...@ibest.com.br>.
I did a test case where I saved a node with the text:

misteriosamente inexistindo stopwords funciona pesquisa frase

in this phrase there is no stop words in BrazilianAnalyser.
Then, I did a phrase search and it works!

BUT...

I saved a node with the text:

misteriosamente em inexistindo stopwords não funciona pesquisa por frase

in this phrase there are the following stop words: "em", "por"

So... I got it that the phrase search only works if I search the phrase with
words where there is no stop word between then, like:
"inexistindo stopwords não funciona pesquisa"
but, if I search:
"misteriosamente em inexistindo"
it will not return result because there is the stop word "em" between the
two words searched in the original phrase value...
even if I search:
"misteriosamente inexistindo"
it will not return result.

In this post I put two pictures from Luke, one with and another without stop
words in FULLTEXT field, and you can see that there is a "null_1" where
would be a stop word in the original phrase value. Is that the "bug"?

Best Regards, and hope by some help from you...

Helio


FULLTEXT without stop words
<http://jackrabbit.510166.n4.nabble.com/file/n4663585/PastaDescricaoSemStopWord.gif> 

FULLTEXT WITH stop words
<http://jackrabbit.510166.n4.nabble.com/file/n4663585/PastaComStopWords.gif> 




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

Re: Phrase querie searches not working in portuguese

Posted by hsp <pi...@ibest.com.br>.
I really appreciate it if there was some contribution from someone this forum
to help me understand and get a complete solution of my problem , which has
already exhausted my alternatives . This is impeding the continuity of our
project ( already in production in fact ... )
To summarize then,
- If I create and index a repository without informing an analyzer into
SearchIndex , the phrase search works ( of course for my language gets some
limitations of terms )
- If I create and index the same repository , informing BrazilianAnalyser
class , the search for phrase does not work at all , does not return
results.
Again I ask for help, have any restrictions or some detail so that it is not
working in this configuration context? It can be something simple that I
have not seen ...

Thanks in advanced...

Helio.



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

Re: Phrase querie searches not working in portuguese

Posted by hsp <pi...@ibest.com.br>.
I rebuilt the index so many times...
I opened the index by Luke.
I did a search with only a phrase, no result...
I did a search with a phrase and a term, results found.

There is a chance that the index is "wrong" to not be working only with the
phrase searching?

<http://jackrabbit.510166.n4.nabble.com/file/n4663569/SearchOnlyPhrase.gif> 


<http://jackrabbit.510166.n4.nabble.com/file/n4663569/SearchPhraseTerm.gif> 



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

Re: Phrase querie searches not working in portuguese

Posted by hsp <pi...@ibest.com.br>.
Could someone give some contribution to help me?
Thanks
Helio.



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