Elasticsearch - Not require an exact match

2015-03-19 Thread James
Currently I have an item in my elasticsearch index with the title: *testing123* When I search for it, I can only get it returned if I search *testing123* exactly. However, I want to be able to search *testing* and have it returned too. How can I have it so the search must start with that term

Re: Elasticsearch - Not require an exact match

2015-03-19 Thread Itamar Syn-Hershko
You should use this then: http://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-word-delimiter-tokenfilter.html -- Itamar Syn-Hershko http://code972.com | @synhershko https://twitter.com/synhershko Freelance Developer Consultant Lucene.NET committer and PMC member On Thu, Mar

Re: Elasticsearch - Not require an exact match

2015-03-19 Thread Itamar Syn-Hershko
This boils down to Lucene fundamentals, in particular what search tokens are created and then searched. I've explained this in depth here: https://www.youtube.com/watch?v=QI566fe9Svs -- Itamar Syn-Hershko http://code972.com | @synhershko https://twitter.com/synhershko Freelance Developer

Re: Elasticsearch - Not require an exact match

2015-03-19 Thread James
Thank you for the reply. I thought it was much about making my search query not require an exact match, rather than splitting down the words I am searching against? On 19 March 2015 at 12:30, Itamar Syn-Hershko ita...@code972.com wrote: You should use this then: