You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2014/08/22 01:18:05 UTC
svn commit: r1619623 - /lucene/dev/trunk/lucene/core/src/java/overview.html
Author: sarowe
Date: Thu Aug 21 23:18:04 2014
New Revision: 1619623
URL: http://svn.apache.org/r1619623
Log:
LUCENE-5859, LUCENE-5871: Remove Version.LUCENE_CURRENT from javadocs
Modified:
lucene/dev/trunk/lucene/core/src/java/overview.html
Modified: lucene/dev/trunk/lucene/core/src/java/overview.html
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/overview.html?rev=1619623&r1=1619622&r2=1619623&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/overview.html (original)
+++ lucene/dev/trunk/lucene/core/src/java/overview.html Thu Aug 21 23:18:04 2014
@@ -30,13 +30,13 @@ to check if the results are what we expe
<!-- = Java2Html Converter 5.0 [2006-03-04] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<pre class="prettyprint">
- Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);
+ Analyzer analyzer = new StandardAnalyzer();
// Store the index in memory:
Directory directory = new RAMDirectory();
// To store an index on disk, use this instead:
//Directory directory = FSDirectory.open("/tmp/testindex");
- IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_CURRENT, analyzer);
+ IndexWriterConfig config = new IndexWriterConfig(analyzer);
IndexWriter iwriter = new IndexWriter(directory, config);
Document doc = new Document();
String text = "This is the text to be indexed.";
@@ -48,7 +48,7 @@ to check if the results are what we expe
DirectoryReader ireader = DirectoryReader.open(directory);
IndexSearcher isearcher = new IndexSearcher(ireader);
// Parse a simple query that searches for "text":
- QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "fieldname", analyzer);
+ QueryParser parser = new QueryParser("fieldname", analyzer);
Query query = parser.parse("text");
ScoreDoc[] hits = isearcher.search(query, null, 1000).scoreDocs;
assertEquals(1, hits.length);