I am trying to use tire to index JSONs of objects in my rails application
on an elasticsearch server. The article object JSON looks like:
{
"title": "article subject line",
"tags": ["chinese", "food"],
"content": "article content"
}
where the field contents can be Chinese. So, another example with Chinese
content could be:
{
"title": "中华料理Chinese Cuisine",
"tags": ["中国", "食物", "Chinese", "food"],
"content": "中国菜很好吃。"
}
I set up elasticsearch with the Chinese analysis plugin.
When I did a search for "中华料理“ in the subject using a query_string query,
it correctly returned the instance with that string in the subject. But if
did a search for "Chinese Cuisine" in the subject using a query_string
query, it told me that it did not find anything.
Is it possible to do both English and Chinese search on the same instance
of elasticsearch with Chinese analysis plugin? If so, how should I set
that up? Thanks for helping.