How I can limit suggest results to existing?

For some phrases suggest can return corrections not existing in the index.
E.g. 'brokin steel' will suggest 'broken steel', but this combination is
not in the index, so search will produce no results.
Is there any way to limit suggestions only to those that would return
results?

My sample query:
"suggest": {
"text": "brokin steel",
"simple_phrase": {
"phrase": {
"field": "name",
"size": 1,
"real_word_error_likelihood": 0.95,
"max_errors": 2,
"direct_generator": [
{
"field": "name",
"suggest_mode": "missing",
"min_word_len": 3
}
]
}
}
}

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Can you try raising the confidence factor a bit to something like 2 or so?
(Elasticsearch Platform — Find real-time answers at scale | Elastic)
I think it would make sense to add such a feature that will make sure that
the combination of terms exists in at least a single document.. Can you
open an issue?

simon

On Friday, August 9, 2013 8:02:53 PM UTC+2, Igor Ivanov wrote:

For some phrases suggest can return corrections not existing in the index.
E.g. 'brokin steel' will suggest 'broken steel', but this combination is
not in the index, so search will produce no results.
Is there any way to limit suggestions only to those that would return
results?

My sample query:
"suggest": {
"text": "brokin steel",
"simple_phrase": {
"phrase": {
"field": "name",
"size": 1,
"real_word_error_likelihood": 0.95,
"max_errors": 2,
"direct_generator": [
{
"field": "name",
"suggest_mode": "missing",
"min_word_len": 3
}
]
}
}
}

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Simon and Igor - Just wanted to check whether an issue was opened for
this request?

-Amit.

On Sun, Aug 11, 2013 at 12:20 AM, simonw
simon.willnauer@elasticsearch.comwrote:

Can you try raising the confidence factor a bit to something like 2 or so?
(Elasticsearch Platform — Find real-time answers at scale | Elastic)
I think it would make sense to add such a feature that will make sure that
the combination of terms exists in at least a single document.. Can you
open an issue?

simon

On Friday, August 9, 2013 8:02:53 PM UTC+2, Igor Ivanov wrote:

For some phrases suggest can return corrections not existing in the index.
E.g. 'brokin steel' will suggest 'broken steel', but this combination is
not in the index, so search will produce no results.
Is there any way to limit suggestions only to those that would return
results?

My sample query:
"suggest": {
"text": "brokin steel",
"simple_phrase": {
"phrase": {
"field": "name",
"size": 1,
"real_word_error_likelihood": 0.95,
"max_errors": 2,
"direct_generator": [
{
"field": "name",
"suggest_mode": "missing",
"min_word_len": 3
}
]
}
}
}

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I can't point it out now (on phone) but I'm pretty sure there is on. I've spent a few hours hacking on it at least. I should have something in the next few days.

Sent from my iPhone

On Sep 8, 2013, at 4:21 AM, Amit Soni amitsoni29@gmail.com wrote:

Hi Simon and Igor - Just wanted to check whether an issue was opened for this request?

-Amit.

On Sun, Aug 11, 2013 at 12:20 AM, simonw simon.willnauer@elasticsearch.com wrote:

Can you try raising the confidence factor a bit to something like 2 or so? (Elasticsearch Platform — Find real-time answers at scale | Elastic)
I think it would make sense to add such a feature that will make sure that the combination of terms exists in at least a single document.. Can you open an issue?

simon

On Friday, August 9, 2013 8:02:53 PM UTC+2, Igor Ivanov wrote:

For some phrases suggest can return corrections not existing in the index.
E.g. 'brokin steel' will suggest 'broken steel', but this combination is not in the index, so search will produce no results.
Is there any way to limit suggestions only to those that would return results?

My sample query:
"suggest": {
"text": "brokin steel",
"simple_phrase": {
"phrase": {
"field": "name",
"size": 1,
"real_word_error_likelihood": 0.95,
"max_errors": 2,
"direct_generator": [
{
"field": "name",
"suggest_mode": "missing",
"min_word_len": 3
}
]
}
}
}

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.