1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/rpc_server
Ralph Boehme 8e3372ecea mdssvc: add options to allow ignoring attribute and type mapping errors
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>
2021-10-14 09:33:38 +00:00
..
dfs s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
dssetup s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
echo s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
epmapper epmapper: talloc_stackframe() panics on failure 2021-03-09 22:36:28 +00:00
eventlog s3: eventlog: get_nt_acl_no_snum(), SMB_VFS_GET_NT_ACL_AT() -> SMB_VFS_FGET_NT_ACL(). 2021-06-09 13:14:30 +00:00
fss lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
initshutdown s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
lsa rpc_server3: Remove "pipes_struct->opnum" 2021-10-08 19:28:32 +00:00
mdssvc mdssvc: add options to allow ignoring attribute and type mapping errors 2021-10-14 09:33:38 +00:00
netlogon rpc_server3: Use dcesrv_iface_state in netlogon3 2021-10-08 19:28:32 +00:00
ntsvcs s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
samr rpc_server3: Remove "pipes_struct->opnum" 2021-10-08 19:28:32 +00:00
spoolss rpc_server3: Remove "pipes_struct->opnum" 2021-10-08 19:28:32 +00:00
srvsvc srvsrvc: Reload conf after changing a share 2021-03-09 22:36:28 +00:00
svcctl lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
winreg srv_winreg: Align integer types 2021-04-01 19:32:36 +00:00
wkssvc rpc_server: Make get_domain_userlist() independent of errno 2021-06-15 18:11:35 +00:00
epmd.c s3:rpc_server: Do not include s3 autogenerated headers 2020-03-20 15:36:36 +00:00
epmd.h s3:rpc_server: Reinitialize dcesrv_context in external epmd daemon 2020-03-20 15:36:32 +00:00
fssd.c s3/rpc_server: remove unnecessary srv_fss_agent.h header 2020-06-03 03:57:12 +00:00
fssd.h s3:rpc_server: Reinitialize dcesrv_context in external fssd daemon 2020-03-20 15:36:32 +00:00
lsasd.c rpc_server: Make dcerpc_ncacn_accept() take tsocket_address ** 2021-01-14 13:29:35 +00:00
lsasd.h s3:rpc_server: Reinitialize dcesrv_context in external lsasd daemon 2020-03-20 15:36:32 +00:00
mdssd.c rpc_server: Make dcerpc_ncacn_accept() take tsocket_address ** 2021-01-14 13:29:35 +00:00
mdssd.h s3:rpc_server: Reinitialize dcesrv_context in external mdssd daemon 2020-03-20 15:36:32 +00:00
rpc_config.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
rpc_config.h s3:rpc_server: Add global dcesrv_context init and shutdown functions 2020-03-20 15:36:32 +00:00
rpc_ep_register.c s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_ep_register.h s3:rpc_server: Drop dcerpc_binding_vector usage in the server side 2020-03-20 15:36:34 +00:00
rpc_handles.c rpc_server3: Remove an outdated comment 2021-10-08 19:28:32 +00:00
rpc_modules.c s3:rpc_server: Remove unused RPC module init and shutdown callbacks 2020-03-20 15:36:36 +00:00
rpc_modules.h s3:rpc_server: Remove unused RPC module init and shutdown callbacks 2020-03-20 15:36:36 +00:00
rpc_ncacn_np.c s3:rpc_server: Do not use the default ncalrpc endpoint for external services 2021-09-21 11:00:01 +00:00
rpc_ncacn_np.h s3:rpc_server: Retrieve dcesrv_context from parent context to open NP 2020-03-20 15:36:35 +00:00
rpc_pipes.h rpc_server3: Remove pipes_struct->private_data 2021-10-08 19:28:32 +00:00
rpc_server.c s3: rpc_server: Store new association groups in the id tree 2021-04-07 09:18:30 +00:00
rpc_server.h rpc_server3: Remove unused fields from struct dcerpc_ncacn_conn 2021-10-08 19:28:31 +00:00
rpc_service_setup.c rpc_server: Consolidate transport-specific socket creation 2021-01-26 00:10:31 +00:00
rpc_service_setup.h rpc_server: Remove an unused function parameter 2021-01-26 00:10:31 +00:00
rpc_sock_helper.c rpc_server: Don't rely on TCP-bind() to return EADDRINUSE 2021-06-15 18:11:35 +00:00
rpc_sock_helper.h rpc_server: Consolidate transport-specific socket creation 2021-01-26 00:10:31 +00:00
srv_access_check.c s3:rpc_server: Set debug class in all rpc server related files 2019-07-22 16:49:15 +00:00
srv_access_check.h
srv_pipe_hnd.c rpc_server: Avoid a cast 2021-06-04 16:47:34 +00:00
srv_pipe_hnd.h s3:rpc_server: Retrieve dcesrv_context from parent context to open NP 2020-03-20 15:36:35 +00:00
srv_pipe.c s3:rpc_server: Remove s3 rpc server loop 2020-03-20 15:36:36 +00:00
srv_pipe.h s3:rpc_server: Remove s3 rpc server loop 2020-03-20 15:36:36 +00:00
wscript_build s3/rpc_server: add deps of rpc_mdssvc_module 2021-01-14 16:05:10 +00:00