|
| 1 | +searchParams: |
| 2 | + title: Composition Search parameters as object |
| 3 | + type: object |
| 4 | + additionalProperties: false |
| 5 | + properties: |
| 6 | + query: |
| 7 | + $ref: '../../../common/schemas/SearchParams.yml#/query' |
| 8 | + filters: |
| 9 | + $ref: '../../../common/schemas/SearchParams.yml#/filters' |
| 10 | + page: |
| 11 | + $ref: '#/page' |
| 12 | + getRankingInfo: |
| 13 | + type: boolean |
| 14 | + description: Whether the search response should include detailed ranking information. |
| 15 | + relevancyStrictness: |
| 16 | + type: integer |
| 17 | + facetFilters: |
| 18 | + $ref: '../../../common/schemas/SearchParams.yml#/facetFilters' |
| 19 | + optionalFilters: |
| 20 | + $ref: '../../../common/schemas/SearchParams.yml#/optionalFilters' |
| 21 | + numericFilters: |
| 22 | + $ref: '../../../common/schemas/SearchParams.yml#/numericFilters' |
| 23 | + hitsPerPage: |
| 24 | + $ref: '../../../common/schemas/IndexSettings.yml#/hitsPerPage' |
| 25 | + aroundLatLng: |
| 26 | + $ref: '../../../common/schemas/SearchParams.yml#/aroundLatLng' |
| 27 | + aroundLatLngViaIP: |
| 28 | + $ref: '../../../common/schemas/SearchParams.yml#/aroundLatLngViaIP' |
| 29 | + aroundRadius: |
| 30 | + $ref: '../../../common/schemas/SearchParams.yml#/aroundRadius' |
| 31 | + aroundPrecision: |
| 32 | + $ref: '../../../common/schemas/SearchParams.yml#/aroundPrecision' |
| 33 | + minimumAroundRadius: |
| 34 | + type: integer |
| 35 | + description: Minimum radius (in meters) for a search around a location when `aroundRadius` isn't set. |
| 36 | + minimum: 1 |
| 37 | + x-categories: |
| 38 | + - Geo-Search |
| 39 | + insideBoundingBox: |
| 40 | + $ref: '../../../common/schemas/SearchParams.yml#/insideBoundingBox' |
| 41 | + insidePolygon: |
| 42 | + $ref: '../../../common/schemas/SearchParams.yml#/insidePolygon' |
| 43 | + queryLanguages: |
| 44 | + type: array |
| 45 | + items: |
| 46 | + $ref: '../../../common/schemas/IndexSettings.yml#/supportedLanguage' |
| 47 | + example: |
| 48 | + - es |
| 49 | + description: | |
| 50 | + Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. |
| 51 | +
|
| 52 | + This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. |
| 53 | + This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. |
| 54 | + To support this, you must place the CJK language **first**. |
| 55 | +
|
| 56 | + **You should always specify a query language.** |
| 57 | + If you don't specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), |
| 58 | + or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. |
| 59 | + This can lead to unexpected search results. |
| 60 | + For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/). |
| 61 | + default: [] |
| 62 | + x-categories: |
| 63 | + - Languages |
| 64 | + naturalLanguages: |
| 65 | + type: array |
| 66 | + items: |
| 67 | + $ref: '../../../common/schemas/IndexSettings.yml#/supportedLanguage' |
| 68 | + description: | |
| 69 | + ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): |
| 70 | +
|
| 71 | + - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. |
| 72 | + - Sets `removeWordsIfNoResults` to `allOptional`. |
| 73 | + - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`. |
| 74 | + default: [] |
| 75 | + x-categories: |
| 76 | + - Languages |
| 77 | + enableRules: |
| 78 | + type: boolean |
| 79 | + description: Whether to enable rules. |
| 80 | + default: true |
| 81 | + x-categories: |
| 82 | + - Rules |
| 83 | + ruleContexts: |
| 84 | + type: array |
| 85 | + items: |
| 86 | + type: string |
| 87 | + description: | |
| 88 | + Assigns a rule context to the search query. |
| 89 | +
|
| 90 | + [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules. |
| 91 | + default: [] |
| 92 | + example: [mobile] |
| 93 | + x-categories: |
| 94 | + - Rules |
| 95 | + userToken: |
| 96 | + $ref: '../../../common/schemas/SearchParams.yml#/userToken' |
| 97 | + clickAnalytics: |
| 98 | + type: boolean |
| 99 | + description: | |
| 100 | + Whether to include a `queryID` attribute in the response. |
| 101 | +
|
| 102 | + The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/). |
| 103 | + default: false |
| 104 | + x-categories: |
| 105 | + - Analytics |
| 106 | + analytics: |
| 107 | + type: boolean |
| 108 | + description: Whether this search will be included in Analytics. |
| 109 | + default: true |
| 110 | + x-categories: |
| 111 | + - Analytics |
| 112 | + analyticsTags: |
| 113 | + type: array |
| 114 | + items: |
| 115 | + type: string |
| 116 | + description: Tags to apply to the query for [segmenting analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments/). |
| 117 | + default: [] |
| 118 | + x-categories: |
| 119 | + - Analytics |
| 120 | + enableABTest: |
| 121 | + type: boolean |
| 122 | + description: Whether to enable A/B testing for this search. |
| 123 | + default: true |
| 124 | + x-categories: |
| 125 | + - Advanced |
| 126 | + enableReRanking: |
| 127 | + type: boolean |
| 128 | + description: | |
| 129 | + Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). |
| 130 | +
|
| 131 | + This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard. |
| 132 | + default: true |
| 133 | + x-categories: |
| 134 | + - Filtering |
0 commit comments