使用Algolia Search Bundle

时间:2019-07-04 13:10:13

标签: php symfony symfony4 algolia

我已经为我的产品设置了副本索引,并按日期对它们进行了排序,但是我不明白如何根据用户为搜索设置的选项简单地选择要搜索的索引。

我一直在遵循文档here来开始建立按日期排序的副本,但是我没有找到与搜索捆绑文档中的内容相关的任何内容来搜索该副本。< / p>

如果可以提供帮助,这是我从阿尔及利亚获得的设置

{
    "minWordSizefor1Typo": 6,
    "minWordSizefor2Typos": 10,
    "hitsPerPage": 20,
    "maxValuesPerFacet": 100,
    "version": 2,
    "attributesToIndex": [
        "title",
        "title_original",
        "subtitle",
        "authors",
        "narrators",
        "description",
        "ean"
    ],
    "numericAttributesToIndex": null,
    "attributesToRetrieve": null,
    "allowTyposOnNumericTokens": false,
    "ignorePlurals": true,
    "unretrievableAttributes": null,
    "optionalWords": null,
    "replicas": [
        "dev_product_date_desc"
    ],
    "attributesForFaceting": [
        "categories"
    ],
    "attributesToSnippet": null,
    "attributesToHighlight": null,
    "paginationLimitedTo": 1000,
    "attributeForDistinct": null,
    "exactOnSingleWordQuery": "attribute",
    "ranking": [
        "typo",
        "geo",
        "words",
        "filters",
        "proximity",
        "attribute",
        "exact",
        "custom"
    ],
    "customRanking": null,
    "separatorsToIndex": "",
    "removeWordsIfNoResults": "none",
    "queryType": "prefixLast",
    "highlightPreTag": "<em>",
    "highlightPostTag": "<\/em>",
    "snippetEllipsisText": "",
    "alternativesAsExact": [
        "ignorePlurals",
        "singleWordSynonym"
    ]
}

当前使用的是Algolia Search Bundle 3.2和Symfony 4.2

0 个答案:

没有答案