nrtsearch icon indicating copy to clipboard operation
nrtsearch copied to clipboard

Search multiple indices

Open frotsch opened this issue 3 years ago • 5 comments

Is it currently supported (or planned) to search multiple indices, expressed by comma separated list or wildcard/regex with one search request?

Like "indexName": "index1,index2,myind*"

frotsch avatar Nov 07 '21 18:11 frotsch

Searching over multiple indices is not supported right now, is this a feature you need?

sarthakn7 avatar Nov 08 '21 19:11 sarthakn7

I guess this would help a lot of people (including me) migrating from Elasticsearch

frotsch avatar Nov 08 '21 19:11 frotsch

This can be a complicated change since our current SearchHandler assumes only one index. There might be hackier ways to do this support this quickly but we would still have to clean it up later. Still this is something we can try to support, but we are not planning to work on this in the near future.

sarthakn7 avatar Nov 08 '21 20:11 sarthakn7

@frotsch I also want to add that Nrtsearch is open-source, so if you're interested feel free to work on the feature and send a PR, I'd be happy to review it :)

sarthakn7 avatar Nov 08 '21 20:11 sarthakn7

@sarthakn7 Thanks, I know :-) I have plans to contribute but currently I need to get familiar with nrtsearch, see whats already there or maybe planned by Yelp and then prioritize for our use cases and needs. Currently it's hard to get started because docs are very sparse :-)

frotsch avatar Nov 08 '21 20:11 frotsch