S
S
Sinner32021-10-25 15:13:34
API
Sinner3, 2021-10-25 15:13:34

How to implement a search for a site on 1C Bitrix through the Multisearch.io API?

The Multisearch.io search has a ready-made script for installing it on the site, it replaces the standard search. When you click on the full screen, their module pops up.
The essence of the problem is that Multisearch.io cannot display a page with search results as it is implemented in 1C-Bitrix, all correspondence with the managers of this search comes down to the fact that they have an API and work with it as you wish. And they don’t have a ready-made module for 1C Bitrix.
Link to the API Here
So that's the question, any ideas how this can be implemented?
Their api returns the result in JSON format
Is it possible to somehow replace the array in ready-made 1C Bitrix modules to display information?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2021-10-25
@udjin123

What for? Search data is usually closed from indexing, which is why it is implemented in the form of SPA
. I once abandoned them altogether and made my module for Bitrix + used sphinx, but it was the issuance format that was almost one to one left like theirs.

A
Alexander, 2021-10-26
@kikher

most likely you need to upload goods to them for which the search will be conducted, the Yandex module for business will do. They process your result and when searching on the site, your data is accessed. So it should be simple enough.
entered data into the form, you substituted your data in the line

https://api.multisearch.io/?id=11798&query=смесь&uid=cc441f080&categories=0&limit=18

received a response and parsed it at home and gave it to the user
{"query":"смесь","total":72,"results":{"ids":["23568","24494","25390","26419","21445","21450","21451","21452","21459","21460","21461","21464","21465","29083","18225","18226","18228","18239"],"categories":[{"id":"2136","name":"Огнеупорные смеси","count":11},{"id":"2134","name":"Универсальные смеси","count":9},{"id":"1582","name":"Кладочные смеси","count":6},{"id":"2144","name":"Гипс, Смеси для заделки","count":4},{"id":"1837","name":"Строительные емкости","count":8},{"id":"1807","name":"Строительные миксеры","count":6},{"id":"2120","name":"Клей для утеплителя","count":5},{"id":"2118","name":"Клей для блоков","count":2},{"id":"2130","name":"Цементная штукатурка","count":1},{"id":"2137","name":"Сухая гидроизоляция","count":1},{"id":"1878","name":"Миксеры строительные","count":3},{"id":"2115","name":"Толстослойные","count":7},{"id":"2113","name":"Универсальные","count":5},{"id":"2114","name":"Тонкослойные","count":4}]}}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question