concept same query in category hibernate

This is an excerpt from Manning's book Hibernate Search in Action.
SCORE returns the relative importance of a document compared to the other documents for that particular query. A score can only compare documents within the same query. Let me say it for the third time: Comparing the score of documents from different queries makes no sense. Score is nevertheless a very useful feature because it emphasizes the relative importance of two documents. Your search engine might purposely decide to ignore all documents whose score is one-tenth that of the most relevant document in order to emphasize quality over quantity. For a long discussion of score, please refer to chapter 12.
This query is looking for all index documents where the value in the dateEntered field is between 12 January 2008 and 1 February 2008. The use of square brackets here causes the date boundaries to be included in the query. If you wanted the boundary dates to be excluded from the query, you’d use { } (curly brackets). You cannot have one of each. That is, you cannot have one square bracket and one curly bracket in the same query. If you try it, you’ll generate an exception. Querying for dateEntered: [20080112 TO 20080201} generates this exception: