meilisearch / scrapix

MIT License
23 stars 9 forks source link

Create a mode compatible with docsearch #11

Closed qdequele closed 1 year ago

qdequele commented 1 year ago

Create a mode that would be compatible with the docsearch format.

The documents look likes this:

{
    "uid": "",
    "hierarchy_lvl0": "",
    "hierarchy_lvl1": "",
    "hierarchy_lvl2": "",
    "hierarchy_lvl3": "",
    "hierarchy_lvl4": "",
    "hierarchy_lvl4": "",
    "hierarchy_radio_lvl0": "",
    "hierarchy_radio_lvl1": "",
    "hierarchy_radio_lvl2": "",
    "hierarchy_radio_lvl3": "",
    "hierarchy_radio_lvl4": "",
    "hierarchy_radio_lvl4": "",
    "content": "",
    "url": "",
    "anchor": ""
}

The settings look likes this:

{
    searchableAttributes: [
        "hierarchy_lvl0",
        "hierarchy_lvl1",
        "hierarchy_lvl2",
        "hierarchy_lvl3",
        "hierarchy_lvl4",
        "hierarchy_lvl5",
        "content"
      ]
}
bidoubiwa commented 1 year ago

Can I close this issue @qdequele ?

qdequele commented 1 year ago

Yes 👍