mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
8e3372ecea
This adds two options that are used by the Spotlight query parser to optionally ignore unknown attributes or types in a query. elasticsearch:ignore unknown attribute = yes | no (default: no) elasticsearch:ignore unknown type = yes | no (default: no) Example Spotlight query with unknown attributes and type: kMDItemContentType=="public.calendar-event"||kMDItemSubject=="Kalender*"cdw|| kMDItemTitle=="Kalender*"cdw||kMDItemTopic=="Kalender*"cdw|| kMDItemTextContent=="Kalender*"cd||*=="Kalender*"cdw|| kMDItemTextContent=="Kalender*"cdw The unknown attributes are "kMDItemTopic" and "kMDItemSubject". The unkown type is "public.calendar-event". Currently the parser will outright fail to parse the query and the search will enter an error state. To give users some control over the mapping the above options can be used to tell the parser to simply ignore such unknown attributes and types. (meta.title:Kalender* OR content:Kalender* OR Kalender* OR content:Kalender*) Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org> |
||
---|---|---|
.. | ||
dalloc.c | ||
dalloc.h | ||
elasticsearch_mappings.json | ||
es_lexer.l | ||
es_mapping.c | ||
es_mapping.h | ||
es_parser_test.c | ||
es_parser.y | ||
marshalling.c | ||
marshalling.h | ||
mdssvc_es.c | ||
mdssvc_es.h | ||
mdssvc_noindex.c | ||
mdssvc_noindex.h | ||
mdssvc_tracker.c | ||
mdssvc_tracker.h | ||
mdssvc.c | ||
mdssvc.h | ||
README | ||
sparql_lexer.l | ||
sparql_mapping.c | ||
sparql_mapping.h | ||
sparql_parser_test.c | ||
sparql_parser.y | ||
srv_mdssvc_nt.c | ||
srv_mdssvc_nt.h | ||
test_mdsparser_es.c |
Introduction: ============= This directory contains source code for the metadata search service aka Spotlight. Bison and flex: =============== Not yet integrated into the waf buildsystem, run these by hand: $ bison -d -o sparql_parser.c sparql_parser.y $ flex -o sparql_lexer.c sparql_lexer.l or use the bundled Makefile.