Skip to content

Commit

Permalink
Lucene indexing demo for version Lucene45
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzimorris committed Nov 26, 2013
1 parent 318b37b commit 78177dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/casestudy/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<path id="classpath">
<pathelement location="${jar}"/>
<pathelement location="../webchars/lib/jdom-2.0.4.jar"/>
<pathelement location="../applucene/lib/lucene-core-4.2.1.jar"/>
<pathelement location="../applucene/lib/lucene-analyzers-common-4.2.1.jar"/>
<pathelement location="../applucene/lib/lucene-misc-4.2.1.jar"/>
<pathelement location="../applucene/lib/lucene-queryparser-4.2.1.jar"/>
<pathelement location="../applucene/lib/lucene-core-4.5.1.jar"/>
<pathelement location="../applucene/lib/lucene-analyzers-common-4.5.1.jar"/>
<pathelement location="../applucene/lib/lucene-misc-4.5.1.jar"/>
<pathelement location="../applucene/lib/lucene-queryparser-4.5.1.jar"/>

<pathelement location="lib/solr-solrj-4.3.0.jar"/>
<pathelement location="lib/solr-solrj-4.5.0.jar"/>
<pathelement location="lib/httpclient-4.2.3.jar"/>
<pathelement location="lib/httpcore-4.2.2.jar"/>
<pathelement location="lib/httpmime-4.2.3.jar"/>
Expand Down
4 changes: 2 additions & 2 deletions src/casestudy/src/com/colloquial/casestudy/IndexPapers.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public static void main(String[] args)
Directory fsDir = FSDirectory.open(indexDir);

Analyzer stdAn
= new StandardAnalyzer(Version.LUCENE_42);
= new StandardAnalyzer(Version.LUCENE_45);
IndexWriterConfig iwConf
= new IndexWriterConfig(Version.LUCENE_42,stdAn);
= new IndexWriterConfig(Version.LUCENE_45,stdAn);

iwConf.setOpenMode(IndexWriterConfig.OpenMode.CREATE);
IndexWriter indexWriter
Expand Down

0 comments on commit 78177dc

Please sign in to comment.