How to use solr-query API?

Опубликовано: 29 Сентябрь 2024
на канале: HotWax Developer Network
1,847
8

#ionic #ionicframework #vue #vuejs #javascript #solr

In this video we will see how we retrieve data through solr query in HotWax Commerce apps.

Solr query is an api which takes query in payload, searches the solr index and returns a JSON response. Response consists of a result list along with the facets(optional).

Solr works by gathering, storing and indexing documents from different sources and making them searchable in near real-time. It follows a 3-step process that involves indexing, querying, and finally, ranking the results – all in near real-time, even though it works with huge volumes of data.

Important terms:
filters: filters are to apply some filter conditions.

facets: Faceting allows the search results to be arranged into subsets (or buckets or categories), providing a count for each subset.

query: Solr’s query parameter (query) with a special syntax (*:*) requests all documents in the index. It means any of key and value in the map.

Result grouping groups documents together with a common property and places these documents under a group. It allows you to group search results by specific property.

App links:
https://github.com/hotwax/commerce-hub
https://github.com/hotwax/receiving

Created By : Azkya Khan
LinkedIn :   / azkya-khan-8747171a2