Site-wide search with elasticsearch

(abxccd) #1

In my index, I have different "types", for example "account", "posts",
"tags" and so on.

I want to create a site-wide search where we search the user's query
against certain fields + conditions in account, another site of fields +
conditions in posts and the same for tags. Essentially, this is going to be
an "omnibox", similiar to how Facebook's search will return different
types, (users, groups, etc).

I have been looking at the multi search api ( and it
looks like I can send multiple queries to ES. The problem, however, is that
I would like to do some paganiation using from and size. Does the
multisearch API support from and size?

If not, are there any other options for doing a site-wide search with
different types?

(system) #2