Search
Litium Studio uses Lucene as the underlying search engine. This article explains the general concepts and things to watch out for. (Detailed code examples are given in articles under each module.)
Litium Studio uses Lucene as the underlying search engine. Developers are not required to know about lucene when implementing functionality based on search, but some key observations should be kept in mind.
- When some change is made in a entity, it will take a short amount of time for the search engine to index the changes. Therefore, if you search immediately after the change, it might not result in a successful hit.
- Searching has more performance when compared to iterating through a large collection to find an item. For example, if you would like to find all articles with article numbers starting from "001" to be found, its much faster to search.
- When building search, be mindful of the Lucene search text syntax. For example, '*' at the end of a string means a pattern match, with any number of ending characters.
- When searching language is important, because some property values might be language dependent. However, if you are searching for a language independant field, you may use the default language.
- After upgrading or migrating to a new files folder, it is a must that search indexes are rebuilt. This can be done from Litium Studio back office > Control Panel > System Settings > Search Indexes