Search code examples
phpelasticsearchongr

Is multi index search possible with ongr.io's ElasticSearchBundle?


I'm looking into ongr.io's ElasticSearchBundle but can't find a way to perform a multi index search or query. Am I overlooking something or is it just not possible (yet)?

According to the docs, you specify the index you're using in your configuration and not when performing the search..


Solution

  • You can create a separate manager for the multi-index search purpose and define index name separated by the comma.

    connections:
        default:
            hosts:
                - 127.0.0.1:9200
            index_name: "firstIndex,secondIndex"