| 1 | Geonetwork uses for her search function Lucene. Lucene can be used directly or via Hibernate Search. |
| 2 | |
| 3 | |
| 4 | '''Option 1''' |
| 5 | Implementing the search with Hibernate Search above Lucene. |
| 6 | Advantages: |
| 7 | * Using HQL for defining searches. Because we use Hibernate already, HQL is used anyway. |
| 8 | * Hibernate Search is using Apache Lucene(tm) internally, and always provides the ability to fallback to the native Lucene APIs. |
| 9 | |
| 10 | |
| 11 | '''Option 2''' |
| 12 | Implementing the search with Lucene directly. |
| 13 | * No abstraction to Lucene. Same approach used as in the Geonetwork Legacy. |