문제

I am working on a search engine for searching (site is Tutorial Documentation) links & words/phrases contained in Site . I have a code which use org.apache.lucene package. How do I determine which jar file contains this package (class file is org.apache.lucene.analysis.standard.StandardAnalyzer). I have downloaded lucene-4.8.0 zip file from Apache mirror site. But It does not contains following classes

   org.apache.lucene.analysis.standard.StandardAnalyzer
   org.apache.lucene.queryParser.QueryParser
   org.apache.lucene.search.Searcher;

My question How do I determine which jar file contains this package (containing all class files). Any guidance for Download site is appreciated. I have searched net but of no avail.

도움이 되었습니까?

해결책

You can use Maven search: opt for advanced search and paste the class name. Then from the search results, pick the relevant version (4.8.0 in your case); this will show you the jar.

You can also search for both version and class name. Use v for version and fc for class name, e.g. the full query would look like as follows:

v:"4.8.0" fc:"org.apache.lucene.analysis.standard.StandardAnalyzer"

다른 팁

You need to add this to your pom file:

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
<version>4.8.0</version>
</dependency>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top