Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
#80 upgraded to elasticsearch 5.2.0 & tested.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryKey committed Feb 11, 2017
1 parent 4e91e82 commit c755f04
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Luke is the GUI tool for introspecting your Lucene / Solr / Elasticsearch index.

* Viewing your documents and analyzing their field contents (for stored fields)
* Searching in the index
* Performing index maintenance: index sanity checking, index optimization (take a backup before running this!)
* Performing index maintenance: index health checking, index optimization (take a backup before running this!)
* Reading index from hdfs
* Exporting the index or portion of it into an xml format
* Testing your custom Lucene analyzers
* Creating your own plugins!

Recent Changes
====
Expand All @@ -20,6 +21,14 @@ Luke discussion group
====
[Luke google group](https://groups.google.com/forum/#!forum/luke-discuss)

Search engines luke can deal with
====
In no particular order:

* [Apache Lucene](http://lucene.apache.org/). Most certainly luke can open lucene index produced by pure Lucene. Do people make pure Lucene these days?
* [Apache Solr](http://lucene.apache.org/solr/). Solr and Lucene share the same code base, so it is natural that luke can open Lucene Index produced by Solr.
* [Elasticsearch](https://github.com/elastic/elasticsearch). Elasticsearch uses Lucene as its lowest-level search engine base. So luke can open its index too!

Intro video about features
====
This lightning talk was delivered by Dmitry Kan on ApacheCon 2015 in Austin, Texas.
Expand Down Expand Up @@ -80,15 +89,15 @@ Or, and btw, the pull requests are welcome as well!
Releases
====

All of the releases you find under the "releases" link above are versioned after the Lucene's version they use.
All of the [releases](https://github.com/DmitryKey/luke/releases) you find under the "releases" link above are versioned after the Lucene's version they use.

Usually we don't do releases for minor version upgrades, because the major release usually can read the index of the next
minor release.

An example: lucene 4.8.0 can read the index generated by lucene 4.8.1. Hence the luke 4.8.0 can read too.
An example: lucene 4.8.0 can read the index generated by lucene 4.8.1. Hence luke 4.8.0 can read too.

Conclusion: in order to find a luke release that can read an index of your version of Lucene, pick the closest major version
and download the luke for that from the releases page above.
and download luke for that from the [releases](https://github.com/DmitryKey/luke/releases) page.

Where is luke 4.4.0 ?
===
Expand All @@ -99,4 +108,5 @@ Licensing
===

The license for the code is [ALv2](http://www.apache.org/licenses/LICENSE-2.0.html), excluding the license of the
thinlet library that is used for the UI.
thinlet library that is used for the UI. You can also use Apache Pivot based [luke](https://github.com/DmitryKey/luke/tree/pivot-luke).
It is in its early days, but give it a spin and let us know what you think! We accept [pull-requests](https://github.com/DmitryKey/luke/pulls) :)
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<hadoop.version>2.7.2</hadoop.version>
<log4j.version>1.2.17</log4j.version>
<rhino.version>1.7.7.1</rhino.version>
<elasticsearch.version>1.6.0</elasticsearch.version>
<elasticsearch.version>5.2.0</elasticsearch.version>

<maven-shade-plugin.version>3.0.0</maven-shade-plugin.version>
<maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/xml/about.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<dialog modal="true" name="about" columns="1" gap="8" icon="/img/luke.gif" text=" About" left="4" right="4" bottom="4" top="4" close="remove(about)">
<label halign="center" valign="center" text="v 6.3.0 (2016-11-26)" font="10" icon="/img/luke-big.gif"/>
<label halign="center" valign="center" text="v 6.4.1 (2017-02-11)" font="10" icon="/img/luke-big.gif"/>
<button type="link" tooltip="Go to Luke home page" action="goUrl(this)" halign="center" property="url=https://github.com/DmitryKey/luke" foreground="#5aaa88" text="Lucene Index Toolbox" font="18 bold"/>
<label halign="center" font="13" text="Created by Andrzej Bialecki &lt;[email protected]&gt;"/>
<label halign="center" font="13" text="Further developed by: Dmitry Kan &lt;[email protected]&gt;, Tomoko Uchida &lt;[email protected]&gt;"/>
Expand Down
28 changes: 13 additions & 15 deletions src/test/java/org.apache.lucene.index/IndexTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
*/
public class IndexTester extends TestCase {

private String indexPath = "src/test/indices/lukeindex";
private IndexWriterConfig indexCfg;

@Override
protected void setUp() throws Exception {
super.setUp();
Expand All @@ -40,21 +37,22 @@ public void testCreateIndexDir() throws Exception {
}

private void populate() throws Exception {
Path path = FileSystems.getDefault().getPath(indexPath);
Directory directory = NIOFSDirectory.open(path);
indexCfg = new IndexWriterConfig(new UAX29URLEmailAnalyzer());
indexCfg.setOpenMode(IndexWriterConfig.OpenMode.CREATE);
String indexPath = "src/test/indices/lukeindex";
Path path = FileSystems.getDefault().getPath(indexPath);
Directory directory = NIOFSDirectory.open(path);
IndexWriterConfig indexCfg = new IndexWriterConfig(new UAX29URLEmailAnalyzer());
indexCfg.setOpenMode(IndexWriterConfig.OpenMode.CREATE);

IndexWriter writer = new IndexWriter(directory, indexCfg);
IndexWriter writer = new IndexWriter(directory, indexCfg);

Document doc = new Document();
doc.add(new StringField("aaa", "1", Field.Store.NO));
doc.add(new StringField("bbb", "2", Field.Store.YES));
Document doc = new Document();
doc.add(new StringField("aaa", "1", Field.Store.NO));
doc.add(new StringField("bbb", "2", Field.Store.YES));

// sanity check
doc.add(new StringField("ccc", "3", Field.Store.YES));
// sanity check
doc.add(new StringField("ccc", "3", Field.Store.YES));

writer.addDocument(doc);
writer.close();
writer.addDocument(doc);
writer.close();
}
}

0 comments on commit c755f04

Please sign in to comment.