Search code examples
phplaravelelasticsearch

How can you set boosts and filters with Laravel Scout and ElasticSearch?


I am building a search integration with Laravel Scout and Elasticsearch. I am trying to figure out how I can refine my queries for boosting.

Is it possible to do this with Laravel Scout or will I need to revert back to using the ElasticSearch PHP library directly?


Solution

  • Laravel Scout does not support advanced Elasticsearch features. I ended up sticking with Scout for all of the index creation and updating based on model events, but I switched my search over to utilize the ElasticSearch library directly.