How to fetch all data from multiple index in single query through spring boot

Hi All,

I have multiple indexes like store, sku, listing i want to search content in single query if any data match then get the response.

I tried to check simple output from 2 indexes but its not showing simple query is
http://localhost:9200/_search?q=*&index=store&index=sku

Welcome!

Try:

http://localhost:9200/store,sku/_search?q=*

Or

http://localhost:9200/store,sku/_search

Hi David,

Thanks for your reply, in this i'm able to see other index but not all indexes from bot, like if i have 10 records in store and 5 in sku then all 10 from store is displaying but only 1 from sku is displaying.

Thanks & Regards
Vishal Lodha

Then run:

http://localhost:9200/store,sku/_search?size=15

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