I have a document with different text fields. For example I have a text
field for french text (text_fr) which has a french analyzer set in the
mapping. Once the indexing is done and I try to query the; field specific
(text_fr:"xyz") querying works well with fuzziness (searching for word
"person" will return the documents with "personne"). However if I do a all
search with "person" it doesn't return anything. I tried applying french
analyzer for the query but no results.
Any pointers to what I am missing will be of great help.
Is there a away I can retrieve the documents with "personne" (documents
retrieved in the second query) by using all (not field specific) query.
Hope this adds more info on my use case.
On Wednesday, April 1, 2015 at 10:40:24 AM UTC-7, werewolf420 wrote:
Hi,
I have a document with different text fields. For example I have a text
field for french text (text_fr) which has a french analyzer set in the
mapping. Once the indexing is done and I try to query the; field specific
(text_fr:"xyz") querying works well with fuzziness (searching for word
"person" will return the documents with "personne"). However if I do a all
search with "person" it doesn't return anything. I tried applying french
analyzer for the query but no results.
Any pointers to what I am missing will be of great help.
I was able to repro that. It looks like the "analyzer" attribute is not
picked up by the "query_string" query.
Any thoughts? Should we create a github issue?
On Wednesday, April 1, 2015 at 11:12:26 AM UTC-7, werewolf420 wrote:
For example,
I have a field named text_fr (french analyzed), when I search with:
Is there a away I can retrieve the documents with "personne" (documents
retrieved in the second query) by using all (not field specific) query.
Hope this adds more info on my use case.
On Wednesday, April 1, 2015 at 10:40:24 AM UTC-7, werewolf420 wrote:
Hi,
I have a document with different text fields. For example I have a text
field for french text (text_fr) which has a french analyzer set in the
mapping. Once the indexing is done and I try to query the; field specific
(text_fr:"xyz") querying works well with fuzziness (searching for word
"person" will return the documents with "personne"). However if I do a all
search with "person" it doesn't return anything. I tried applying french
analyzer for the query but no results.
Any pointers to what I am missing will be of great help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.