Start a new topic

Facets empty in search result

Hi,


I am playing a little bit with the Searchanise APIs because we are planning to integrate this service in our store.

We cannot use any of the provided plugins, this is why I have to play with APIs.


I have already, successfully used the APIs:

  • /api/signup
  • /api/items/update
  • /api/facets/update
  • /search

But I have a problem: the result of the search operation finds the products IDs, but the facets array is empty.

Here's the request:
 

POST http://searchanise.com/search

apiKey XXXXXX
facets true
queryBy[title] mystring

 and here's the response:

{"totalItems":3,"startIndex":0,"itemsPerPage":10,"currentItemCount":3,"items":[{"product_id":"1442"},{"product_id":"1443"},{"product_id":"1444"}],"facets":[]}

 As you can see, the search operation was fine, but the facets is empty.


Now, I have to say that the facet concept is not clear at all to me, so I am pretty sure the problem is with the data that I have provided to the /api/facets/update API call.


Here's the XML that I have sent:

  

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:cs="http://searchanise.com/ns/1.0">
    <title>Searchanise data feed</title>
    <updated>2017-02-22T15:37:12+04:00</updated>
    <id>here_same_website_as_the_one_in_products</id>
    <entry>
        <title><![CDATA[Price]]></title>
        <cs:position>30</cs:position>
        <cs:attribute>price</cs:attribute>
        <cs:ranges>
            <cs:range from="0"   to="10"   position="10"></cs:range>
            <cs:range from="10"  to="50"   position="20"></cs:range>
            <cs:range from="50" to="100"   position="30"></cs:range>
            <cs:range from="100" to="1000" position="30"></cs:range>
        </cs:ranges>
    </entry>
    <entry>
        <title><![CDATA[Weight]]></title>
        <cs:position>20</cs:position>
        <cs:attribute>price</cs:attribute>
        <cs:type>slider</cs:type>
    </entry>
    <entry>
        <title><![CDATA[Title]]></title>
        <cs:position>10</cs:position>
        <cs:attribute>title</cs:attribute>
    </entry>
    <entry>
        <title><![CDATA[Summary]]></title>
        <cs:position>40</cs:position>
        <cs:attribute>summary</cs:attribute>
    </entry>
</feed> 

  The result is

 

<?xml version="1.0" encoding="UTF-8"?>
<ok />

 but I don't see the results.


In the products update I have tried different solutions, as the following one:

 

<entry>
  .....
  <cs:attribute name="title" text_search="Y" type="text"><![CDATA[Content here]]></cs:attribute>
  <title><![CDATA[Content here]]>
</entry>


Any help?


Thanks!

Lorenzo


It's just a typing error in the final code, obviously the <title> tag is closed ;)

Hi Lorenzo!


Thank you for your interest in Searchanise.


We provide consultations regarding Searchanise integration to Enterprise subscribers only. Please let us know if you are interested in the Enterprise Searchanise plan.


Thank you.


Hi Arina, 


thanks for your reply.


We are absolutely interested, at first to the $9 / month plan, and probably switch to the $18 / month soon for our multistore.


If it is not possible at all to know if the results are as we are expecting, we will start the $9 / month plan today to start having technical support, but it would be great to understand if the results are as expected before...


Thanks,

  Lorenzo

Another question. In case it will be needed to buy a plan to get technical support, after I start the subscription do I have to open a new ticket ? Thanks

Dear Lorenzo,


Thank you for your message.


As mentioned in our previous message, we provide consultations regarding Searchanise integration to Enterprise subscribers only. Searchanise Enterprise subscription costs $189 per month. Please let us know if you are interested in the Enterprise Searchanise plan and we will enable it for you.


You can post your questions in this thread.


Thank you.

Login or Signup to post a comment