After I had read > 100 articles, blog-posts, documentation pages and much 
more I'll ask the community but still wonder where my blind spot is, if I 
had overseen the obvious.

I want to create search-suggestions on how to complete a term based on 
tokens, similar to g*oogle like autocomplete* but only with one token or 
word.

I'd like to search across filenames who will get tokenized. E.g. 
"BRAND_Connect_A1233.jpg" gets tokenized into "brand", "connect", "a1234" 
and "jpg".

Now I'd like to ask for some suggestion for e.g. "*Con*". The suggestion 
should deliver the matching tokens, not the full filename:

   - Connect
   - Contour
   - Concept
   - ...

The suggestion for "*A12*" should be "A1234", "A1233", "A1233" ...

I created a complete test scenario, available at Gist: 
https://gist.github.com/165a707a1e628caac73d.git

Some remarks about the example:

   - Working with queries, facet and filters works fine. The example is a 
   minimized version of a much more complex scenario.
   - Various approaches to get the desired suggestion does not deliver the 
   expected results. I had tried to name the analyzers and tried various 
   combinations of analyzers and wildcards. 

Any help, pointer or working example will be highly appreciated.

Kind regards,
Christian


-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1daf5301-7048-43ea-9ee2-d208025e7922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to