I want to correct multiple terms in a phrase at a time using the phrase 
suggester. However, ES only suggests changing one _or_ the other, and not 
both.

My setup: https://www.found.no/play/gist/9316842

Data:
    [
        { "value": "broken" },
        { "value": "problem" }
    ]

Query:

    {
        "suggest": {
            "text": "braken prablem",
            "simple_phrase": {
                "phrase": {
                    "field": "value"
                }
            }
        },
        "size": 0
    }

I get back "braken problem" and "broken prablem". How do I reformulate the 
query so I get the expected "broken problem"?

-- 
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/c60a821d-e6c4-4196-814b-0a90dd731880%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to