Tuesday, February 9, 2016

Lucene 5.4.1 - Write and Search faster

To start off with , follow these 2 basic tutorials.

https://kbicknell.github.io/ling400fall2015/dl/ling400_class5c.pdf


You can add these following dependencies.

<dependency>    <groupId>org.apache.lucene</groupId>    <artifactId>lucene-core</artifactId>    <version>5.4.1</version></dependency><dependency>    <groupId>org.apache.lucene</groupId>    <artifactId>lucene-analyzers-common</artifactId>    <version>5.4.1</version></dependency>
<dependency>    <groupId>org.apache.lucene</groupId>    <artifactId>lucene-queryparser</artifactId>    <version>5.4.1</version></dependency>
If you need to find the matched terms after searching, follow this tutorial and dependency
http://stackoverflow.com/questions/10875604/searching-sentences-in-lucene-and-getting-matched-terms
<dependency>    <groupId>org.apache.lucene</groupId>    <artifactId>lucene-highlighter</artifactId>    <version>5.4.1</version></dependency>

No comments:

Post a Comment