Changes between Version 7 and Version 8 of Public/Docs/CinnamonUsingAdvancedSearch


Ignore:
Timestamp:
Mar 24, 2020, 6:20:16 PM (5 years ago)
Author:
Administrator
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Public/Docs/CinnamonUsingAdvancedSearch

    v7 v8  
    6767You can combine multiple fields using [https://en.wikipedia.org/wiki/Boolean_algebra Boolean] operators ({{{AND}}}, {{{OR}}}). Such operators can also be nested within operators as deeply as you require.
    6868
     69The following search finds [https://en.wikipedia.org/wiki/Darwin_Information_Typing_Architecture DITA] topics that are not referenced by any parent manual:
    6970
     71 [[Image(wiki:Public/Docs/CinnamonUsingAdvancedSearch:SearchUnusedTopics.png)]]
    7072
     73This search exposes some of the advanced capabilities of search editor:
     74* Multiple search terms are combined in a Boolean operator.
     75* Negation of a search (the objects must **NOT** have the defined field content).
     76* **ANY** flag (the search matches, if the field exists on the object, with any value).
    7177
     78In this case, we defined a search that does the following:
     79* It searches for objects that are the latest versions of their version tree. Branches and older versions are ignored.
     80* Both of the following criteria must be fulfilled because of the //AND// operator:
     81 * The object must have the object type //DITA topic//.
     82 * The object must NOT have ANY value of //parent.relations.child_content//. This means, that there may be no objects that refer to the content of the objects returned by the search.
     83
     84By combining the structures and functions described in this article, you can create searches of significant complexity.
     85
     86> **NOTE:** A very complex search is not slower than a very simple search. The index performance scales with the number of results, not with the number of terms it evaluates. One exception is that you should avoid the //contains// comparison operator if possible. Compared with other operators like //equals// or //starts with// it is significantly slower due to the index concept.
     87