Greetings!
We're wrestling to perform a "queryString" that handle Latin accents,
no success so far.
Our scenario is:
- Couchdb river:
curl -XPUT "localhost:9200/_river/idxscopus/_meta" -d "{"""type""" :
"""couchdb""", """couchdb""" : {"""host""" : """localhost""",
"""port""" : 5984, """db""" : """db-conhecimentos""", """filter""" :
null}, """index""" : { """index""" : """idxscopus""", """type""" :
"""idxscopus""", """bulk_size""" : """100""", """bulk_timeout""" :
"""10ms""", """analysis""": { """analyzer""": { """searchAnalyzer""":
{"""type""":"""custom""", """tokenizer""": """whitespace""",
"""filter""": ["""standard""", """lowercase""",
"""asciifolding"""] }}}}}
And a JAVA application executing the following statement:
SearchResponse response = client
.prepareSearch("idxscopus")
.setSearchType(SearchType.QUERY_AND_FETCH)
.setQuery(queryString(req.getParameter("tags"))
.defaultOperator(Operator.AND).analyzer("searchAnalyzer"))
.addHighlightedField("tags",0,0)
.setFrom(0).setExplain(true).execute().actionGet();
SearchHit[] docs = response.getHits().getHits();
We're getting an exception telling us that "searchAnalyzer" was not
found.
Does anybody see what we are doing wrong?
Thanks in advance!