Wildcard (*) search in elasticsearch


(Nataraj Gandhi Arunachalam) #1

Hi,

When i search through my index performing a query_string search with just the term, "*". I see a set of results.

I am just trying to find out if elasticsearch applies any logic while searching with just the wildcard term "*" or it just returns a random set of results back.

Thank you!

Regards,
Nataraj


(David Pilato) #2

By default, results are ordered by _score. Here the score is 1 from every document.

I'd consider that it is like returning a random set of results back unless you are using another sorting field.


(Nataraj Gandhi Arunachalam) #3

Thank you for your answer @dadoonet


(system) #4

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