The user can perform a simple text search in the search bar:
The search bar supports two search modes: by asset and by collection. Use one of the following methods to switch between the modes:
- The selector to the right of the search bar before or after entering a search query and before clicking .
- The mode will automatically change when you switch from the asset feed to the collection feed, and vice versa.
Picvario uses the Elasticsearch search engine for text search. The main purpose of Elasticsearch is to perform a complex full-text search through the database, taking into account language morphology, typos, and ranking results by relevance. A description of all the benefits of searching with Elasticsearch is available on their official website.
Assets/collections are searched for by all properties, except for logical properties and properties like "Date," "Date and time."
You can enter a word in the search box to find all assets/collections where the word is mentioned in one of the properties above.
You can use Boolean logic to perform more complex search tasks. To do this, include logical operators in your search query:
- && — AND
- || — OR
- ! — NOT
Rules for using logical operators:
- Construct a search query in the following format: Word Operator Word. For example: test && lakes.
- The operator must be separated by a space on both sides.
- You can use brackets () to build complex queries that include several operators. For example: (test && lakes) || (test && mountains)
An example of a query using &&.
The "chirch" query gives us all the images that have the word "chirch" in them.
Using the &&(AND) operator allowed us to reduce the number of assets in the search result and get only the assets that have both "chirch" and "white sea" in their property values.
You can also use wildcard operators together with or separately from logical operators in search queries:
- ? replaces any one character after the word entered in the query.
- * replaces any number of any characters in a row after the word entered in the query.
An example of using a query with a wildcard character:
And here is an example of using a logical operator and a special character together: