elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.42k stars 24.56k forks source link

Intervals query wildcard expansion parameter #65505

Open prasad2kin opened 3 years ago

prasad2kin commented 3 years ago

Lucene intervals wildcard query method has an additional parameter expansion to specify how many expansions to consider before throwing an error.

Can we get an additional parameter to supply that argument using the elastic Intervals-wildcard query?

Also, instead of throwing an error, is there a way to get terms with maxExpansions and performing the query? As for some use-cases, that would make more sense.

Please have a look at the thread in the discussion board: https://discuss.elastic.co/t/intervals-wildcard-128-expansion-limit/256390

@romseygeek @spinscale @xeraa

elasticmachine commented 3 years ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 1 month ago

Pinging @elastic/es-search-relevance (Team:Search Relevance)

MysterionRise commented 1 month ago

Agreed with @prasad2kin, it's better to expose this as parameter. Is there any motivation behind hardcoding 128 as maxExpansions?