Skip to content

Recursive query flags

Marco Trevisan requested to merge 3v1n0/nautilus:recursive-query-flags into master

This is something that is needed by !98 (merged) and also tracker search, to ensure we can do recursive (but lighter) searches from the shell, if the engine we query is efficient enough.

Basically the recursive flags for query is now an enum, where a part from classic ON/OFF elements tere's an IF_INDEXED parameter (can be reworded), which will allow a search engine to enable the recursive search if it's an index-based search.

If you go through commits, you can see that my first revision was based on adding another flag (deep-search), but I think this is misleading, while we can just change the recursive flag to have multiple values. So, if you agree with this, I'll just squash the changes and reorganize the commits properly.

With this by setting the recursive-search setting to NAUTILUS_SPEED_TRADEOFF_NEVER, the shell provider will still be able to provide search results from the whole user contents, when using tracker (for now), at least.

Edited by Marco Trevisan

Merge request reports