Hi Graham,
If you were to use the highlighter functionality you would essentially "see 
what the search engine saw".
With some client-side coding you could parse out the expanded search terms 
because they would be surrounded by tags in matching docs.
Of course this wouldn't provide a de-duped list of terms and would be 
inefficient to return an exhaustive list of all expansions used but may be 
an approach to investigate. 

Cheers
Mark

On Monday, April 27, 2015 at 5:08:55 PM UTC+1, Graham Turner wrote:
>
> Hi,
>
> I'm working on a proof-of-concept for a client, replacing an existing 
> legacy search system with an elastic based alternative.  One of the 
> requirements that comes from the existing system is that, when performing a 
> fuzzy or wildcard search, the user can view all the matching terms, and 
> include/exclude them manually from the subsequent search.
>
> Thus, if a fuzzy search for 'graham' is submitted (or a wildcard like 
> 'gr*m*'), it might match grayam, graeme, grahum, grahem, etc.  The users 
> want to be able to see this list of matched terms, then, for instance, 
> exclude 'grayam' from the expanded terms list, so that all the other 
> expansions are used, but not the specifically excluded one. 
>
> I’m struggling to retrieve this list of terms in the first place.  Ideally 
> I’d like to submit a simple query for a fuzzy or wildcard term, and have it 
> return just the possible matching terms (up to a given limit).
>
> I’ve had reasonable success using the term suggester for fuzzy-type 
> responses, but can’t use this for wildcard expansions. 
>
> Is there a good way to do this using 'out-of-the-box' elastic 
> functionality?  
>
> Any advice / hints gratefully accepted!
>
> Thanks
>
> Graham
>

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/6ef4ede0-78d4-4aa2-82d6-4041cadce89d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to