concept time in category hibernate

appears as: time, time, times
Hibernate Search in Action

This is an excerpt from Manning's book Hibernate Search in Action.

Unfortunately, flexibility comes at a price. You need to be able to integrate the full-text library into your application, as shown in figure 1.11. While it’s very easy for a new application, it might be more difficult for an application that has reached the end of its life (or close to it) or for an application for which you don’t have the source code. While developers are willing to spend time working on integrating the search phase, they often find it harder to integrate the necessary indexing phase. Said differently, developers would rather avoid the burdens of infrastructure code. But as you’ve seen previously, both operations (indexing and searching) are integral parts of a full-text search engine.

First and foremost, is the application too slow for your use case? In many cases, Lucene and Hibernate Search are doing a good job out of the box. If some searches are considered too slow or if indexing is taking too long, be sure to identify the problem clearly and define your goal in terms of performance. Finally, try to understand the cost of optimization. Optimization can be costly in many different ways: the time you, as a developer or architect, spend on the problem; the effect on code readability; the use of additional resources (you might optimize response time by using more memory or CPU); and so on.

Properties marked for tokenization are passed through the relevant analyzer implementation, which splits the property into individual words and applies additional logic, this logic being either simpler or more complex. This operation takes time. Stemming a word or finding its phonetic approximation can be quite consuming of time and CPU compared to an analyzer that simply passes the words to the index. Make sure you need the feature, or, more accurately, if you need the feature, make sure indexing time is still within your acceptable range.