Re: Best way to search/index the data - with and without whitespace

2014-02-07 Thread Binh Ly
Thale, I played with your data a little and it turns out it is more complex than I thought. Something like this works somewhat but may require some fine-tuning depending on your exact requirements. Anyway give this a try and see how it works (BTW I did this in ES 1.0 RC 2): 1) PUT

Re: Best way to search/index the data - with and without whitespace

2014-02-06 Thread thale jacobs
Hello Binh Ly - Thanks for the replay. I thought I had read that ngram searching should only be used at either index time or search time, but not both... Is that not the case? Thanks again. Thale On Wednesday, January 29, 2014 6:49:10 PM UTC-5, Binh Ly wrote: Thale, I would try edge

Re: Best way to search/index the data - with and without whitespace

2014-02-06 Thread thale jacobs
This is how I set up the mappings: curl -s -XPUT 'localhost:9200/test' -d '{ mappings: { properties: { name: { street: { type: string, index_analyzer: index_ngram, search_analyzer: search_ngram

Best way to search/index the data - with and without whitespace

2014-01-29 Thread thale jacobs
Hello - I am having a problem indexing and searching for words that may or may not contain whitespace...Below is an example Here is how the index is created: curl -s -XPUT 'localhost:9200/test/name/1' -d '{ street: Lakeshore Dr }' curl -s -XPUT 'localhost:9200/test/name/2' -d '{ street:

Re: Best way to search/index the data - with and without whitespace

2014-01-29 Thread Binh Ly
Thale, I would try edge ngrams (both index and search) and see how that works. I don't see why it wouldn't work for your 2 cases - just make your queries into match queries and use the AND operator. Good luck! -- You received this message because you are subscribed to the Google Groups