Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
Experts Most Trusted Topic
How do I set the default analyzer for elastic search with tire?
I have been experimenting with elasticsearch lately with ruby on rails. I am having trouble getting my data indexed so I can search for items with both plural, and non-plural keywords.
Tire will allow me to assign an analyzer per mapping attribute:
¬†¬†indexes title, analyzer: 'snowball'
¬†¬†indexes body, analyzer: 'snowball'
Now, say I have a keyword in the title of 'tests'
if I do a search with the attribute in the query: http://localhost:9200/myindex/mymapping/_search?q=title:test It will work.
However, if I do a general search without specifying the attribute like so:
It will not find the document.
How do I specify that I want the default analyzer to be 'snowball' so I don't have to specify the attribute I want to search on?
p.s. I am using the Tire Gem. So please answer as best as you can taking that into account.
Apr 19, 2015
to add a comment.
Related Hot Questions
Walkin Jobs Opening
Government Jobs Opening