@@ -23,6 +23,11 @@ interface](./img/searchbar_demo.png)
23
23
- [ contributing] ( #contributing )
24
24
25
25
## Patch Notes
26
+ - v0.1.2
27
+ - 📓 Updated docs to properly reflect key names. Prior versions of this
28
+ README were not up to date with the current functionality. Package
29
+ functionality remains the same. Current and more accurate
30
+ documentation can be generated by running ` yarn doc && serve docs/ ` .
26
31
27
32
- v0.1.1
28
33
- ❌ Breaking change!
@@ -168,7 +173,7 @@ const queryObject = {
168
173
" analyzer" : " analyzer_name" ,
169
174
" keys" : [" text" ]
170
175
}],
171
- " query " : " +'query string' -for +parseQuery ?to parse"
176
+ " terms " : " +'query string' -for +parseQuery ?to parse"
172
177
}
173
178
174
179
const limit = {start: 0 , count: 20 }
@@ -208,8 +213,8 @@ indexed by the analyzer. If a collection is indexed by multiple analyzers
208
213
please list each collection-analyzer combination along with their relevant
209
214
keys, unless a unified set of keys is provided to ` query.key ` .
210
215
211
- • ** query ** (required): either an array of ` term ` interfaces or a query string
212
- to be parsed by ` parseQuery ` .
216
+ • ** terms ** (required): either an array of ` term ` interfaces or a query string
217
+ to be parsed by ` parseQuery() ` .
213
218
- ** term** (optional): a JSON object representing the search.
214
219
- ** val** * string* (required): a search term or phrase. For PHRASE
215
220
searches, include one "quoted phrase" per val. For TOKENS you may combine
@@ -265,8 +270,8 @@ and the next page would be
265
270
"keys" : [" texto" , " resumen" , " notas" ]
266
271
}
267
272
],
268
- "query " : " either a +query ?\" string for parseQuery to parse\" texto en español" ,
269
- "query " : [
273
+ "terms " : " either a +query ?\" string for parseQuery to parse\" texto en español" ,
274
+ "terms " : [
270
275
{"type" : " phr" , "op" : " ?" , "val" : " \" !!! OR a list of query objects\" " },
271
276
{"type" : " phr" , "op" : " ?" , "val" : " optional phrases" },
272
277
{"type" : " tok" , "op" : " -" , "val" : " excluded tokens" },
0 commit comments