# Phrase suggester giving suggestion on correct terms containing number values

**URL:** <https://discuss.elastic.co/t/phrase-suggester-giving-suggestion-on-correct-terms-containing-number-values/339579>\
**Category:** Elasticsearch\
**Created:** [July 28, 2023, 6:14pm UTC](https://discuss.elastic.co/t/phrase-suggester-giving-suggestion-on-correct-terms-containing-number-values/339579 "2023-07-28T18:14:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavithra2014](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@Pavithra2014](https://discuss.elastic.co/u/Pavithra2014)\
**Post date:** [July 28, 2023, 6:14pm UTC](https://discuss.elastic.co/t/phrase-suggester-giving-suggestion-on-correct-terms-containing-number-values/339579/1 "2023-07-28T18:14:33Z")

</div>

Team,  
We are using Phrase suggestion with below configuration. but this is returning suggestion on correct speeled words having numeric values on it.  
eg: Product 2023 is giving the suggestion Product 2022 . I'm expecting to give suggestion only on misspelled words.  
PFB for config details.

```auto
"spellcheck":{"type":"text","analyzer":"trigram"}
"analyzer":{"trigram":{"filter":["shingle","lowercase"],"type":"custom","tokenizer":"standard"}}
{"filter":{"shingle":{"max_shingle_size":"3","min_shingle_size":"2","type":"shingle"}}
  "suggest": { "Suggestion": { "text": "Product 2023", "phrase": { "analyzer": "trigram", "field": "spellcheck", "size": 1, "gram_size": 3, "max_errors ": 0.99, "direct_generator ": [{ "field ": "spellcheck ", "suggest_mode ": "popular ", "max_edits ": 2, "max_inspections ": 5, "max_term_freq ": 0.01, "prefix_length ": 0, "size ": 10, "min_word_length ": 0, "min_doc_freq ": 1 }] } } } 

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 25, 2023, 6:15pm UTC](https://discuss.elastic.co/t/phrase-suggester-giving-suggestion-on-correct-terms-containing-number-values/339579/2 "2023-08-25T18:15:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
