From 23c9da4b1820199e07730c4809c4877a4c638eb9 Mon Sep 17 00:00:00 2001 From: John Wang Date: Mon, 8 Jan 2018 17:34:56 -0800 Subject: [PATCH] Rename pkg (#60) * rename package to io.dashbase and using dashbase maven repo * fix script * clean up readme * fix pom * fix README --- README.md | 10 +-- bin/build_sample_index.sh | 4 +- bin/clue.sh | 2 +- pom.xml | 66 ++++++------------- .../dashbase}/clue/ClueApplication.java | 8 +-- .../dashbase}/clue/ClueConfiguration.java | 20 +++--- .../dashbase}/clue/ClueContext.java | 56 ++++++++-------- .../dashbase}/clue/HdfsDirectory.java | 5 +- .../dashbase}/clue/api/BytesRefDisplay.java | 2 +- .../dashbase}/clue/api/BytesRefPrinter.java | 2 +- .../clue/api/DefaultDirectoryBuilder.java | 5 +- .../clue/api/DefaultIndexReaderFactory.java | 3 +- .../clue/api/DefaultQueryBuilder.java | 2 +- .../dashbase}/clue/api/DirectoryBuilder.java | 2 +- .../clue/api/IndexReaderFactory.java | 2 +- .../dashbase}/clue/api/QueryBuilder.java | 2 +- .../clue/api/RawBytesRefDisplay.java | 2 +- .../clue/api/StringBytesRefDisplay.java | 2 +- .../dashbase}/clue/commands/ClueCommand.java | 4 +- .../clue/commands/DeleteCommand.java | 5 +- .../clue/commands/DeleteUserCommitData.java | 5 +- .../clue/commands/DirectoryCommand.java | 4 +- .../clue/commands/DocSetInfoCommand.java | 5 +- .../clue/commands/DocValCommand.java | 5 +- .../clue/commands/DumpDocCommand.java | 4 +- .../dashbase}/clue/commands/ExitCommand.java | 4 +- .../clue/commands/ExplainCommand.java | 5 +- .../clue/commands/ExportCommand.java | 4 +- .../commands/GetUserCommitDataCommand.java | 4 +- .../dashbase}/clue/commands/HelpCommand.java | 4 +- .../clue/commands/IndexTrimCommand.java | 6 +- .../dashbase}/clue/commands/InfoCommand.java | 4 +- .../dashbase}/clue/commands/MergeCommand.java | 4 +- .../dashbase}/clue/commands/NormsCommand.java | 4 +- .../clue/commands/PostingsCommand.java | 6 +- .../clue/commands/ReadonlyCommand.java | 4 +- .../clue/commands/ReconstructCommand.java | 5 +- .../clue/commands/SaveUserCommitData.java | 4 +- .../clue/commands/SearchCommand.java | 4 +- .../clue/commands/StoredFieldCommand.java | 5 +- .../clue/commands/TermVectorCommand.java | 5 +- .../dashbase}/clue/commands/TermsCommand.java | 7 +- .../dashbase}/clue/test/BuildSampleIndex.java | 2 +- .../dashbase}/clue/test/PayloadTokenizer.java | 2 +- .../clue/util/CustomBufferedIndexInput.java | 2 +- .../clue/util/IntArrayDocIdSetIterator.java | 2 +- .../clue/util/MatchSomeDocsQuery.java | 2 +- 47 files changed, 139 insertions(+), 177 deletions(-) rename src/main/java/{com/senseidb => io/dashbase}/clue/ClueApplication.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/ClueConfiguration.java (89%) rename src/main/java/{com/senseidb => io/dashbase}/clue/ClueContext.java (80%) rename src/main/java/{com/senseidb => io/dashbase}/clue/HdfsDirectory.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/BytesRefDisplay.java (78%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/BytesRefPrinter.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/DefaultDirectoryBuilder.java (96%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/DefaultIndexReaderFactory.java (91%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/DefaultQueryBuilder.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/DirectoryBuilder.java (85%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/IndexReaderFactory.java (90%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/QueryBuilder.java (88%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/RawBytesRefDisplay.java (90%) rename src/main/java/{com/senseidb => io/dashbase}/clue/api/StringBytesRefDisplay.java (91%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ClueCommand.java (84%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DeleteCommand.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DeleteUserCommitData.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DirectoryCommand.java (85%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DocSetInfoCommand.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DocValCommand.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/DumpDocCommand.java (96%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ExitCommand.java (86%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ExplainCommand.java (95%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ExportCommand.java (95%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/GetUserCommitDataCommand.java (94%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/HelpCommand.java (90%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/IndexTrimCommand.java (93%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/InfoCommand.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/MergeCommand.java (92%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/NormsCommand.java (97%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/PostingsCommand.java (97%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ReadonlyCommand.java (89%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/ReconstructCommand.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/SaveUserCommitData.java (93%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/SearchCommand.java (95%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/StoredFieldCommand.java (97%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/TermVectorCommand.java (96%) rename src/main/java/{com/senseidb => io/dashbase}/clue/commands/TermsCommand.java (97%) rename src/main/java/{com/senseidb => io/dashbase}/clue/test/BuildSampleIndex.java (99%) rename src/main/java/{com/senseidb => io/dashbase}/clue/test/PayloadTokenizer.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/util/CustomBufferedIndexInput.java (99%) rename src/main/java/{com/senseidb => io/dashbase}/clue/util/IntArrayDocIdSetIterator.java (98%) rename src/main/java/{com/senseidb => io/dashbase}/clue/util/MatchSomeDocsQuery.java (97%) diff --git a/README.md b/README.md index 64189e9..22aef1c 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ Please file bugs and feature requests [here](https://github.com/javasoze/clue/is ### Downloads: -latest version: 6.2.0-1.0.0 +latest version: 6.6.2-1.0.0 #### What's new in this release? -See [Release Note](https://github.com/javasoze/clue/releases/tag/release-6.2.0-1.0.0) +See [Release Note](https://github.com/javasoze/clue/releases/tag/release-6.6.2-1.0.0) ### Build: @@ -56,9 +56,9 @@ Command list: using configuration file found at: /Users/johnwang/github/clue/config/clue.conf Analyzer: class org.apache.lucene.analysis.standard.StandardAnalyzer - Query Builder: class com.senseidb.clue.api.DefaultQueryBuilder - Directory Builder: class com.senseidb.clue.api.DefaultDirectoryBuilder - IndexReader Factory: class com.senseidb.clue.api.DefaultIndexReaderFactory + Query Builder: class io.dashbase.clue.api.DefaultQueryBuilder + Directory Builder: class io.dashbase.clue.api.DefaultDirectoryBuilder + IndexReader Factory: class io.dashbase.clue.api.DefaultIndexReaderFactory delete - deletes a list of documents from searching via a query, input: query directory - prints directory information docsetinfo - doc id set info and stats diff --git a/bin/build_sample_index.sh b/bin/build_sample_index.sh index 47a35f7..695887b 100755 --- a/bin/build_sample_index.sh +++ b/bin/build_sample_index.sh @@ -9,6 +9,6 @@ dist=$bin/../target HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" JAVA_OPTS="-server -d64" -MAIN_CLASS="com.senseidb.clue.test.BuildSampleIndex" +MAIN_CLASS="io.dashbase.clue.test.BuildSampleIndex" -java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/clue-6.2.0-1.0.0.jar $MAIN_CLASS $bin/../src/main/resources/cars.json $@ \ No newline at end of file +java $JAVA_OPTS $JMX_OPTS $HEAP_OPTS -cp $dist/clue-6.6.2-1.0.0.jar $MAIN_CLASS $bin/../src/main/resources/cars.json $@ \ No newline at end of file diff --git a/bin/clue.sh b/bin/clue.sh index e41cd91..de21648 100755 --- a/bin/clue.sh +++ b/bin/clue.sh @@ -12,5 +12,5 @@ HEAP_OPTS="-Xmx1g -Xms1g -XX:NewSize=256m" JAVA_OPTS="-server -d64 -Dhadoop.conf.dir=$HADOOP_CONF_DIR" #JAVA_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" -(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -jar $dist/clue-6.2.0-1.0.0.jar $@) +(cd $bin/..; java $JAVA_OPTS $JAVA_DEBUG $HEAP_OPTS -jar $dist/clue-6.6.2-1.0.0.jar $@) diff --git a/pom.xml b/pom.xml index 8c5ca61..04d3e3a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,11 +2,11 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.senseidb.clue + io.dashbase.clue clue jar clue - 6.2.0-1.0.0 + 6.6.2-1.0.0 command line client for Apache Lucene http://github.com/javasoze/clue @@ -35,8 +35,8 @@ UTF-8 - com.senseidb.clue.ClueApplication - 6.2.0 + io.dashbase.clue.ClueApplication + 6.6.2 @@ -86,6 +86,14 @@ + + + + org.kuali.maven.wagons + maven-s3-wagon + 1.2.1 + + @@ -188,46 +196,14 @@ - - sonatype-nexus-staging - sonatype nexus staging repository - http://oss.sonatype.org/service/local/staging/deploy/maven2 - - - sonatype-nexus-snapshots - sonatype nexus snapshots repository - https://oss.sonatype.org/content/repositories/snapshots/ - - - - - - release-sign-artifacts - - - performRelease - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - - - - - + + repo.dashbase.io + s3://repo.dashbase.io/snapshot + + + repo.dashbase.io + s3://repo.dashbase.io/snapshot + + diff --git a/src/main/java/com/senseidb/clue/ClueApplication.java b/src/main/java/io/dashbase/clue/ClueApplication.java similarity index 94% rename from src/main/java/com/senseidb/clue/ClueApplication.java rename to src/main/java/io/dashbase/clue/ClueApplication.java index c0d6b4a..6a6c96e 100644 --- a/src/main/java/com/senseidb/clue/ClueApplication.java +++ b/src/main/java/io/dashbase/clue/ClueApplication.java @@ -1,16 +1,14 @@ -package com.senseidb.clue; +package io.dashbase.clue; -import java.io.BufferedReader; import java.io.IOException; -import java.io.InputStreamReader; import java.io.PrintStream; import java.net.URI; import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.store.Directory; -import com.senseidb.clue.commands.ClueCommand; -import com.senseidb.clue.commands.HelpCommand; +import io.dashbase.clue.commands.ClueCommand; +import io.dashbase.clue.commands.HelpCommand; public class ClueApplication { diff --git a/src/main/java/com/senseidb/clue/ClueConfiguration.java b/src/main/java/io/dashbase/clue/ClueConfiguration.java similarity index 89% rename from src/main/java/com/senseidb/clue/ClueConfiguration.java rename to src/main/java/io/dashbase/clue/ClueConfiguration.java index 671a571..a07d0f9 100644 --- a/src/main/java/com/senseidb/clue/ClueConfiguration.java +++ b/src/main/java/io/dashbase/clue/ClueConfiguration.java @@ -1,22 +1,22 @@ -package com.senseidb.clue; +package io.dashbase.clue; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Properties; +import io.dashbase.clue.api.DefaultIndexReaderFactory; +import io.dashbase.clue.api.DirectoryBuilder; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; -import com.senseidb.clue.api.BytesRefDisplay; -import com.senseidb.clue.api.DefaultDirectoryBuilder; -import com.senseidb.clue.api.DefaultIndexReaderFactory; -import com.senseidb.clue.api.DefaultQueryBuilder; -import com.senseidb.clue.api.DirectoryBuilder; -import com.senseidb.clue.api.IndexReaderFactory; -import com.senseidb.clue.api.QueryBuilder; -import com.senseidb.clue.api.RawBytesRefDisplay; -import com.senseidb.clue.api.StringBytesRefDisplay; +import io.dashbase.clue.api.BytesRefDisplay; +import io.dashbase.clue.api.DefaultDirectoryBuilder; +import io.dashbase.clue.api.DefaultQueryBuilder; +import io.dashbase.clue.api.IndexReaderFactory; +import io.dashbase.clue.api.QueryBuilder; +import io.dashbase.clue.api.RawBytesRefDisplay; +import io.dashbase.clue.api.StringBytesRefDisplay; public class ClueConfiguration { diff --git a/src/main/java/com/senseidb/clue/ClueContext.java b/src/main/java/io/dashbase/clue/ClueContext.java similarity index 80% rename from src/main/java/com/senseidb/clue/ClueContext.java rename to src/main/java/io/dashbase/clue/ClueContext.java index 77b7a08..46e9ea5 100644 --- a/src/main/java/com/senseidb/clue/ClueContext.java +++ b/src/main/java/io/dashbase/clue/ClueContext.java @@ -1,4 +1,4 @@ -package com.senseidb.clue; +package io.dashbase.clue; import java.io.IOException; import java.util.Collection; @@ -23,33 +23,33 @@ import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.store.Directory; -import com.senseidb.clue.api.BytesRefDisplay; -import com.senseidb.clue.api.IndexReaderFactory; -import com.senseidb.clue.api.QueryBuilder; -import com.senseidb.clue.commands.ClueCommand; -import com.senseidb.clue.commands.DeleteCommand; -import com.senseidb.clue.commands.DeleteUserCommitData; -import com.senseidb.clue.commands.DirectoryCommand; -import com.senseidb.clue.commands.DocSetInfoCommand; -import com.senseidb.clue.commands.DocValCommand; -import com.senseidb.clue.commands.DumpDocCommand; -import com.senseidb.clue.commands.ExitCommand; -import com.senseidb.clue.commands.ExplainCommand; -import com.senseidb.clue.commands.ExportCommand; -import com.senseidb.clue.commands.GetUserCommitDataCommand; -import com.senseidb.clue.commands.HelpCommand; -import com.senseidb.clue.commands.IndexTrimCommand; -import com.senseidb.clue.commands.InfoCommand; -import com.senseidb.clue.commands.MergeCommand; -import com.senseidb.clue.commands.NormsCommand; -import com.senseidb.clue.commands.PostingsCommand; -import com.senseidb.clue.commands.ReadonlyCommand; -import com.senseidb.clue.commands.ReconstructCommand; -import com.senseidb.clue.commands.SaveUserCommitData; -import com.senseidb.clue.commands.SearchCommand; -import com.senseidb.clue.commands.StoredFieldCommand; -import com.senseidb.clue.commands.TermVectorCommand; -import com.senseidb.clue.commands.TermsCommand; +import io.dashbase.clue.api.BytesRefDisplay; +import io.dashbase.clue.api.IndexReaderFactory; +import io.dashbase.clue.api.QueryBuilder; +import io.dashbase.clue.commands.ClueCommand; +import io.dashbase.clue.commands.DeleteCommand; +import io.dashbase.clue.commands.DeleteUserCommitData; +import io.dashbase.clue.commands.DirectoryCommand; +import io.dashbase.clue.commands.DocSetInfoCommand; +import io.dashbase.clue.commands.DocValCommand; +import io.dashbase.clue.commands.DumpDocCommand; +import io.dashbase.clue.commands.ExitCommand; +import io.dashbase.clue.commands.ExplainCommand; +import io.dashbase.clue.commands.ExportCommand; +import io.dashbase.clue.commands.GetUserCommitDataCommand; +import io.dashbase.clue.commands.HelpCommand; +import io.dashbase.clue.commands.IndexTrimCommand; +import io.dashbase.clue.commands.InfoCommand; +import io.dashbase.clue.commands.MergeCommand; +import io.dashbase.clue.commands.NormsCommand; +import io.dashbase.clue.commands.PostingsCommand; +import io.dashbase.clue.commands.ReadonlyCommand; +import io.dashbase.clue.commands.ReconstructCommand; +import io.dashbase.clue.commands.SaveUserCommitData; +import io.dashbase.clue.commands.SearchCommand; +import io.dashbase.clue.commands.StoredFieldCommand; +import io.dashbase.clue.commands.TermVectorCommand; +import io.dashbase.clue.commands.TermsCommand; public class ClueContext { diff --git a/src/main/java/com/senseidb/clue/HdfsDirectory.java b/src/main/java/io/dashbase/clue/HdfsDirectory.java similarity index 98% rename from src/main/java/com/senseidb/clue/HdfsDirectory.java rename to src/main/java/io/dashbase/clue/HdfsDirectory.java index c3f7a6d..7dffbd2 100644 --- a/src/main/java/com/senseidb/clue/HdfsDirectory.java +++ b/src/main/java/io/dashbase/clue/HdfsDirectory.java @@ -1,10 +1,11 @@ -package com.senseidb.clue; +package io.dashbase.clue; import java.io.IOException; import java.io.OutputStream; import java.util.Collection; import java.util.EnumSet; +import io.dashbase.clue.util.CustomBufferedIndexInput; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.CreateFlag; import org.apache.hadoop.fs.FSDataInputStream; @@ -20,8 +21,6 @@ import org.apache.lucene.store.LockFactory; import org.apache.lucene.store.OutputStreamIndexOutput; -import com.senseidb.clue.util.CustomBufferedIndexInput; - public class HdfsDirectory extends BaseDirectory { public static final int BUFFER_SIZE = 8192; diff --git a/src/main/java/com/senseidb/clue/api/BytesRefDisplay.java b/src/main/java/io/dashbase/clue/api/BytesRefDisplay.java similarity index 78% rename from src/main/java/com/senseidb/clue/api/BytesRefDisplay.java rename to src/main/java/io/dashbase/clue/api/BytesRefDisplay.java index 73660df..7eed48f 100644 --- a/src/main/java/com/senseidb/clue/api/BytesRefDisplay.java +++ b/src/main/java/io/dashbase/clue/api/BytesRefDisplay.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; public abstract class BytesRefDisplay { abstract public BytesRefPrinter getBytesRefPrinter(String field); diff --git a/src/main/java/com/senseidb/clue/api/BytesRefPrinter.java b/src/main/java/io/dashbase/clue/api/BytesRefPrinter.java similarity index 94% rename from src/main/java/com/senseidb/clue/api/BytesRefPrinter.java rename to src/main/java/io/dashbase/clue/api/BytesRefPrinter.java index e55a62a..2abd10d 100644 --- a/src/main/java/com/senseidb/clue/api/BytesRefPrinter.java +++ b/src/main/java/io/dashbase/clue/api/BytesRefPrinter.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import org.apache.lucene.util.BytesRef; diff --git a/src/main/java/com/senseidb/clue/api/DefaultDirectoryBuilder.java b/src/main/java/io/dashbase/clue/api/DefaultDirectoryBuilder.java similarity index 96% rename from src/main/java/com/senseidb/clue/api/DefaultDirectoryBuilder.java rename to src/main/java/io/dashbase/clue/api/DefaultDirectoryBuilder.java index 50fddc0..085350c 100644 --- a/src/main/java/com/senseidb/clue/api/DefaultDirectoryBuilder.java +++ b/src/main/java/io/dashbase/clue/api/DefaultDirectoryBuilder.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import java.io.IOException; import java.net.URI; @@ -7,14 +7,13 @@ import java.util.HashSet; import java.util.Set; +import io.dashbase.clue.HdfsDirectory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.lucene.store.Directory; import org.apache.lucene.store.FSDirectory; import org.apache.lucene.store.NoLockFactory; -import com.senseidb.clue.HdfsDirectory; - public class DefaultDirectoryBuilder implements DirectoryBuilder { private static final Set SUPPORTED_SCHEMES = new HashSet(Arrays.asList("file", "hdfs")); diff --git a/src/main/java/com/senseidb/clue/api/DefaultIndexReaderFactory.java b/src/main/java/io/dashbase/clue/api/DefaultIndexReaderFactory.java similarity index 91% rename from src/main/java/com/senseidb/clue/api/DefaultIndexReaderFactory.java rename to src/main/java/io/dashbase/clue/api/DefaultIndexReaderFactory.java index 2e5a546..e270458 100644 --- a/src/main/java/com/senseidb/clue/api/DefaultIndexReaderFactory.java +++ b/src/main/java/io/dashbase/clue/api/DefaultIndexReaderFactory.java @@ -1,8 +1,7 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.index.IndexReader; -import org.apache.lucene.index.SegmentInfos; import org.apache.lucene.store.Directory; public class DefaultIndexReaderFactory implements IndexReaderFactory { diff --git a/src/main/java/com/senseidb/clue/api/DefaultQueryBuilder.java b/src/main/java/io/dashbase/clue/api/DefaultQueryBuilder.java similarity index 94% rename from src/main/java/com/senseidb/clue/api/DefaultQueryBuilder.java rename to src/main/java/io/dashbase/clue/api/DefaultQueryBuilder.java index 9d96aaa..30184aa 100644 --- a/src/main/java/com/senseidb/clue/api/DefaultQueryBuilder.java +++ b/src/main/java/io/dashbase/clue/api/DefaultQueryBuilder.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.queryparser.classic.QueryParser; diff --git a/src/main/java/com/senseidb/clue/api/DirectoryBuilder.java b/src/main/java/io/dashbase/clue/api/DirectoryBuilder.java similarity index 85% rename from src/main/java/com/senseidb/clue/api/DirectoryBuilder.java rename to src/main/java/io/dashbase/clue/api/DirectoryBuilder.java index 521907b..ac215c0 100644 --- a/src/main/java/com/senseidb/clue/api/DirectoryBuilder.java +++ b/src/main/java/io/dashbase/clue/api/DirectoryBuilder.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import java.io.IOException; import java.net.URI; diff --git a/src/main/java/com/senseidb/clue/api/IndexReaderFactory.java b/src/main/java/io/dashbase/clue/api/IndexReaderFactory.java similarity index 90% rename from src/main/java/com/senseidb/clue/api/IndexReaderFactory.java rename to src/main/java/io/dashbase/clue/api/IndexReaderFactory.java index 5b07dc3..e746580 100644 --- a/src/main/java/com/senseidb/clue/api/IndexReaderFactory.java +++ b/src/main/java/io/dashbase/clue/api/IndexReaderFactory.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import org.apache.lucene.index.IndexReader; import org.apache.lucene.store.Directory; diff --git a/src/main/java/com/senseidb/clue/api/QueryBuilder.java b/src/main/java/io/dashbase/clue/api/QueryBuilder.java similarity index 88% rename from src/main/java/com/senseidb/clue/api/QueryBuilder.java rename to src/main/java/io/dashbase/clue/api/QueryBuilder.java index fc72c95..a252d36 100644 --- a/src/main/java/com/senseidb/clue/api/QueryBuilder.java +++ b/src/main/java/io/dashbase/clue/api/QueryBuilder.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.search.Query; diff --git a/src/main/java/com/senseidb/clue/api/RawBytesRefDisplay.java b/src/main/java/io/dashbase/clue/api/RawBytesRefDisplay.java similarity index 90% rename from src/main/java/com/senseidb/clue/api/RawBytesRefDisplay.java rename to src/main/java/io/dashbase/clue/api/RawBytesRefDisplay.java index e708053..4a99c14 100644 --- a/src/main/java/com/senseidb/clue/api/RawBytesRefDisplay.java +++ b/src/main/java/io/dashbase/clue/api/RawBytesRefDisplay.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; public class RawBytesRefDisplay extends BytesRefDisplay { diff --git a/src/main/java/com/senseidb/clue/api/StringBytesRefDisplay.java b/src/main/java/io/dashbase/clue/api/StringBytesRefDisplay.java similarity index 91% rename from src/main/java/com/senseidb/clue/api/StringBytesRefDisplay.java rename to src/main/java/io/dashbase/clue/api/StringBytesRefDisplay.java index 2c85963..a3c6f55 100644 --- a/src/main/java/com/senseidb/clue/api/StringBytesRefDisplay.java +++ b/src/main/java/io/dashbase/clue/api/StringBytesRefDisplay.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.api; +package io.dashbase.clue.api; public class StringBytesRefDisplay extends BytesRefDisplay { diff --git a/src/main/java/com/senseidb/clue/commands/ClueCommand.java b/src/main/java/io/dashbase/clue/commands/ClueCommand.java similarity index 84% rename from src/main/java/com/senseidb/clue/commands/ClueCommand.java rename to src/main/java/io/dashbase/clue/commands/ClueCommand.java index 59c4d39..5c1bbdb 100644 --- a/src/main/java/com/senseidb/clue/commands/ClueCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ClueCommand.java @@ -1,8 +1,8 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public abstract class ClueCommand { protected ClueContext ctx; diff --git a/src/main/java/com/senseidb/clue/commands/DeleteCommand.java b/src/main/java/io/dashbase/clue/commands/DeleteCommand.java similarity index 94% rename from src/main/java/com/senseidb/clue/commands/DeleteCommand.java rename to src/main/java/io/dashbase/clue/commands/DeleteCommand.java index e328887..337654b 100644 --- a/src/main/java/com/senseidb/clue/commands/DeleteCommand.java +++ b/src/main/java/io/dashbase/clue/commands/DeleteCommand.java @@ -1,12 +1,11 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.Query; -import com.senseidb.clue.ClueContext; - public class DeleteCommand extends ClueCommand { public DeleteCommand(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/commands/DeleteUserCommitData.java b/src/main/java/io/dashbase/clue/commands/DeleteUserCommitData.java similarity index 94% rename from src/main/java/com/senseidb/clue/commands/DeleteUserCommitData.java rename to src/main/java/io/dashbase/clue/commands/DeleteUserCommitData.java index 0cd2250..119a58c 100644 --- a/src/main/java/com/senseidb/clue/commands/DeleteUserCommitData.java +++ b/src/main/java/io/dashbase/clue/commands/DeleteUserCommitData.java @@ -1,12 +1,11 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Map; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.IndexWriter; -import com.senseidb.clue.ClueContext; - public class DeleteUserCommitData extends ClueCommand { public DeleteUserCommitData(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/commands/DirectoryCommand.java b/src/main/java/io/dashbase/clue/commands/DirectoryCommand.java similarity index 85% rename from src/main/java/com/senseidb/clue/commands/DirectoryCommand.java rename to src/main/java/io/dashbase/clue/commands/DirectoryCommand.java index 7c6731b..87eacbf 100644 --- a/src/main/java/com/senseidb/clue/commands/DirectoryCommand.java +++ b/src/main/java/io/dashbase/clue/commands/DirectoryCommand.java @@ -1,8 +1,8 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class DirectoryCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/DocSetInfoCommand.java b/src/main/java/io/dashbase/clue/commands/DocSetInfoCommand.java similarity index 98% rename from src/main/java/com/senseidb/clue/commands/DocSetInfoCommand.java rename to src/main/java/io/dashbase/clue/commands/DocSetInfoCommand.java index 17dd31e..7ee96a8 100644 --- a/src/main/java/com/senseidb/clue/commands/DocSetInfoCommand.java +++ b/src/main/java/io/dashbase/clue/commands/DocSetInfoCommand.java @@ -1,9 +1,10 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Arrays; import java.util.List; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; @@ -13,8 +14,6 @@ import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; - public class DocSetInfoCommand extends ClueCommand { private static final int DEFAULT_BUCKET_SIZE = 1000; diff --git a/src/main/java/com/senseidb/clue/commands/DocValCommand.java b/src/main/java/io/dashbase/clue/commands/DocValCommand.java similarity index 98% rename from src/main/java/com/senseidb/clue/commands/DocValCommand.java rename to src/main/java/io/dashbase/clue/commands/DocValCommand.java index 242f1fc..b74f83a 100644 --- a/src/main/java/com/senseidb/clue/commands/DocValCommand.java +++ b/src/main/java/io/dashbase/clue/commands/DocValCommand.java @@ -1,10 +1,11 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.DocValuesType; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; @@ -17,8 +18,6 @@ import org.apache.lucene.index.SortedSetDocValues; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; - public class DocValCommand extends ClueCommand { private static final String NUM_TERMS_IN_FIELD = "numTerms in field: "; diff --git a/src/main/java/com/senseidb/clue/commands/DumpDocCommand.java b/src/main/java/io/dashbase/clue/commands/DumpDocCommand.java similarity index 96% rename from src/main/java/com/senseidb/clue/commands/DumpDocCommand.java rename to src/main/java/io/dashbase/clue/commands/DumpDocCommand.java index ebba6e1..27981b3 100644 --- a/src/main/java/com/senseidb/clue/commands/DumpDocCommand.java +++ b/src/main/java/io/dashbase/clue/commands/DumpDocCommand.java @@ -1,7 +1,7 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; import org.apache.lucene.document.Document; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; diff --git a/src/main/java/com/senseidb/clue/commands/ExitCommand.java b/src/main/java/io/dashbase/clue/commands/ExitCommand.java similarity index 86% rename from src/main/java/com/senseidb/clue/commands/ExitCommand.java rename to src/main/java/io/dashbase/clue/commands/ExitCommand.java index a293532..b1d8d70 100644 --- a/src/main/java/com/senseidb/clue/commands/ExitCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ExitCommand.java @@ -1,8 +1,8 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class ExitCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/ExplainCommand.java b/src/main/java/io/dashbase/clue/commands/ExplainCommand.java similarity index 95% rename from src/main/java/com/senseidb/clue/commands/ExplainCommand.java rename to src/main/java/io/dashbase/clue/commands/ExplainCommand.java index b762bf6..22427b4 100644 --- a/src/main/java/com/senseidb/clue/commands/ExplainCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ExplainCommand.java @@ -1,16 +1,15 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.Explanation; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.Query; -import com.senseidb.clue.ClueContext; - public class ExplainCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/ExportCommand.java b/src/main/java/io/dashbase/clue/commands/ExportCommand.java similarity index 95% rename from src/main/java/com/senseidb/clue/commands/ExportCommand.java rename to src/main/java/io/dashbase/clue/commands/ExportCommand.java index 2314a50..3d910ba 100644 --- a/src/main/java/com/senseidb/clue/commands/ExportCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ExportCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.nio.file.FileSystems; @@ -8,7 +8,7 @@ import org.apache.lucene.index.IndexWriterConfig; import org.apache.lucene.store.FSDirectory; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class ExportCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/GetUserCommitDataCommand.java b/src/main/java/io/dashbase/clue/commands/GetUserCommitDataCommand.java similarity index 94% rename from src/main/java/com/senseidb/clue/commands/GetUserCommitDataCommand.java rename to src/main/java/io/dashbase/clue/commands/GetUserCommitDataCommand.java index 08785bf..44d9297 100644 --- a/src/main/java/com/senseidb/clue/commands/GetUserCommitDataCommand.java +++ b/src/main/java/io/dashbase/clue/commands/GetUserCommitDataCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Map; @@ -7,7 +7,7 @@ import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.index.IndexReader; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class GetUserCommitDataCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/HelpCommand.java b/src/main/java/io/dashbase/clue/commands/HelpCommand.java similarity index 90% rename from src/main/java/com/senseidb/clue/commands/HelpCommand.java rename to src/main/java/io/dashbase/clue/commands/HelpCommand.java index 1558312..ade99da 100644 --- a/src/main/java/com/senseidb/clue/commands/HelpCommand.java +++ b/src/main/java/io/dashbase/clue/commands/HelpCommand.java @@ -1,10 +1,10 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Collection; import java.util.Map; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class HelpCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/IndexTrimCommand.java b/src/main/java/io/dashbase/clue/commands/IndexTrimCommand.java similarity index 93% rename from src/main/java/com/senseidb/clue/commands/IndexTrimCommand.java rename to src/main/java/io/dashbase/clue/commands/IndexTrimCommand.java index c83268c..b2ef572 100644 --- a/src/main/java/com/senseidb/clue/commands/IndexTrimCommand.java +++ b/src/main/java/io/dashbase/clue/commands/IndexTrimCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Random; @@ -7,8 +7,8 @@ import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.Query; -import com.senseidb.clue.ClueContext; -import com.senseidb.clue.util.MatchSomeDocsQuery; +import io.dashbase.clue.ClueContext; +import io.dashbase.clue.util.MatchSomeDocsQuery; public class IndexTrimCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/InfoCommand.java b/src/main/java/io/dashbase/clue/commands/InfoCommand.java similarity index 98% rename from src/main/java/com/senseidb/clue/commands/InfoCommand.java rename to src/main/java/io/dashbase/clue/commands/InfoCommand.java index b273bc6..df8596a 100644 --- a/src/main/java/com/senseidb/clue/commands/InfoCommand.java +++ b/src/main/java/io/dashbase/clue/commands/InfoCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.IOException; import java.io.PrintStream; @@ -21,7 +21,7 @@ import org.apache.lucene.index.SegmentInfos; import org.apache.lucene.index.Terms; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class InfoCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/MergeCommand.java b/src/main/java/io/dashbase/clue/commands/MergeCommand.java similarity index 92% rename from src/main/java/com/senseidb/clue/commands/MergeCommand.java rename to src/main/java/io/dashbase/clue/commands/MergeCommand.java index 3a4b5a6..9eda158 100644 --- a/src/main/java/com/senseidb/clue/commands/MergeCommand.java +++ b/src/main/java/io/dashbase/clue/commands/MergeCommand.java @@ -1,10 +1,10 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import org.apache.lucene.index.IndexWriter; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class MergeCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/NormsCommand.java b/src/main/java/io/dashbase/clue/commands/NormsCommand.java similarity index 97% rename from src/main/java/com/senseidb/clue/commands/NormsCommand.java rename to src/main/java/io/dashbase/clue/commands/NormsCommand.java index 59fba8c..31a90cd 100644 --- a/src/main/java/com/senseidb/clue/commands/NormsCommand.java +++ b/src/main/java/io/dashbase/clue/commands/NormsCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.ArrayList; @@ -10,7 +10,7 @@ import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.NumericDocValues; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class NormsCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/PostingsCommand.java b/src/main/java/io/dashbase/clue/commands/PostingsCommand.java similarity index 97% rename from src/main/java/com/senseidb/clue/commands/PostingsCommand.java rename to src/main/java/io/dashbase/clue/commands/PostingsCommand.java index 595d084..a6ac5d3 100644 --- a/src/main/java/com/senseidb/clue/commands/PostingsCommand.java +++ b/src/main/java/io/dashbase/clue/commands/PostingsCommand.java @@ -1,8 +1,9 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.List; +import io.dashbase.clue.api.BytesRefPrinter; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; @@ -12,8 +13,7 @@ import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; -import com.senseidb.clue.api.BytesRefPrinter; +import io.dashbase.clue.ClueContext; public class PostingsCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/ReadonlyCommand.java b/src/main/java/io/dashbase/clue/commands/ReadonlyCommand.java similarity index 89% rename from src/main/java/com/senseidb/clue/commands/ReadonlyCommand.java rename to src/main/java/io/dashbase/clue/commands/ReadonlyCommand.java index 31e835a..06ecc17 100644 --- a/src/main/java/com/senseidb/clue/commands/ReadonlyCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ReadonlyCommand.java @@ -1,8 +1,8 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class ReadonlyCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/ReconstructCommand.java b/src/main/java/io/dashbase/clue/commands/ReconstructCommand.java similarity index 98% rename from src/main/java/com/senseidb/clue/commands/ReconstructCommand.java rename to src/main/java/io/dashbase/clue/commands/ReconstructCommand.java index 83e157a..aa3d3c5 100644 --- a/src/main/java/com/senseidb/clue/commands/ReconstructCommand.java +++ b/src/main/java/io/dashbase/clue/commands/ReconstructCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.IOException; import java.io.PrintStream; @@ -7,6 +7,7 @@ import java.util.Map.Entry; import java.util.TreeMap; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.FieldInfo; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.LeafReader; @@ -17,8 +18,6 @@ import org.apache.lucene.util.Bits; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; - public class ReconstructCommand extends ClueCommand { public ReconstructCommand(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/commands/SaveUserCommitData.java b/src/main/java/io/dashbase/clue/commands/SaveUserCommitData.java similarity index 93% rename from src/main/java/com/senseidb/clue/commands/SaveUserCommitData.java rename to src/main/java/io/dashbase/clue/commands/SaveUserCommitData.java index ac53aea..8257f34 100644 --- a/src/main/java/com/senseidb/clue/commands/SaveUserCommitData.java +++ b/src/main/java/io/dashbase/clue/commands/SaveUserCommitData.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Arrays; @@ -7,7 +7,7 @@ import org.apache.lucene.index.IndexWriter; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class SaveUserCommitData extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/SearchCommand.java b/src/main/java/io/dashbase/clue/commands/SearchCommand.java similarity index 95% rename from src/main/java/com/senseidb/clue/commands/SearchCommand.java rename to src/main/java/io/dashbase/clue/commands/SearchCommand.java index bc9f671..01db457 100644 --- a/src/main/java/com/senseidb/clue/commands/SearchCommand.java +++ b/src/main/java/io/dashbase/clue/commands/SearchCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; @@ -9,7 +9,7 @@ import org.apache.lucene.search.ScoreDoc; import org.apache.lucene.search.TopDocs; -import com.senseidb.clue.ClueContext; +import io.dashbase.clue.ClueContext; public class SearchCommand extends ClueCommand { diff --git a/src/main/java/com/senseidb/clue/commands/StoredFieldCommand.java b/src/main/java/io/dashbase/clue/commands/StoredFieldCommand.java similarity index 97% rename from src/main/java/com/senseidb/clue/commands/StoredFieldCommand.java rename to src/main/java/io/dashbase/clue/commands/StoredFieldCommand.java index 014df8e..a2362bb 100644 --- a/src/main/java/com/senseidb/clue/commands/StoredFieldCommand.java +++ b/src/main/java/io/dashbase/clue/commands/StoredFieldCommand.java @@ -1,10 +1,11 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.Arrays; import java.util.HashSet; import java.util.List; +import io.dashbase.clue.ClueContext; import org.apache.lucene.document.Document; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; @@ -12,8 +13,6 @@ import org.apache.lucene.index.IndexReader; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; - public class StoredFieldCommand extends ClueCommand { public StoredFieldCommand(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/commands/TermVectorCommand.java b/src/main/java/io/dashbase/clue/commands/TermVectorCommand.java similarity index 96% rename from src/main/java/com/senseidb/clue/commands/TermVectorCommand.java rename to src/main/java/io/dashbase/clue/commands/TermVectorCommand.java index c417afe..7fd434d 100644 --- a/src/main/java/com/senseidb/clue/commands/TermVectorCommand.java +++ b/src/main/java/io/dashbase/clue/commands/TermVectorCommand.java @@ -1,8 +1,9 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.List; +import io.dashbase.clue.ClueContext; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.FieldInfo; @@ -11,8 +12,6 @@ import org.apache.lucene.index.TermsEnum; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; - public class TermVectorCommand extends ClueCommand { public TermVectorCommand(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/commands/TermsCommand.java b/src/main/java/io/dashbase/clue/commands/TermsCommand.java similarity index 97% rename from src/main/java/com/senseidb/clue/commands/TermsCommand.java rename to src/main/java/io/dashbase/clue/commands/TermsCommand.java index b1387e1..62bdcef 100644 --- a/src/main/java/com/senseidb/clue/commands/TermsCommand.java +++ b/src/main/java/io/dashbase/clue/commands/TermsCommand.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.commands; +package io.dashbase.clue.commands; import java.io.PrintStream; import java.util.HashMap; @@ -7,6 +7,8 @@ import java.util.TreeMap; import java.util.concurrent.atomic.AtomicInteger; +import io.dashbase.clue.ClueContext; +import io.dashbase.clue.api.BytesRefPrinter; import org.apache.lucene.index.LeafReader; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.IndexReader; @@ -14,9 +16,6 @@ import org.apache.lucene.index.TermsEnum; import org.apache.lucene.util.BytesRef; -import com.senseidb.clue.ClueContext; -import com.senseidb.clue.api.BytesRefPrinter; - public class TermsCommand extends ClueCommand { public TermsCommand(ClueContext ctx) { diff --git a/src/main/java/com/senseidb/clue/test/BuildSampleIndex.java b/src/main/java/io/dashbase/clue/test/BuildSampleIndex.java similarity index 99% rename from src/main/java/com/senseidb/clue/test/BuildSampleIndex.java rename to src/main/java/io/dashbase/clue/test/BuildSampleIndex.java index fae2502..7ead787 100644 --- a/src/main/java/com/senseidb/clue/test/BuildSampleIndex.java +++ b/src/main/java/io/dashbase/clue/test/BuildSampleIndex.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.test; +package io.dashbase.clue.test; import java.io.BufferedReader; import java.io.File; diff --git a/src/main/java/com/senseidb/clue/test/PayloadTokenizer.java b/src/main/java/io/dashbase/clue/test/PayloadTokenizer.java similarity index 98% rename from src/main/java/com/senseidb/clue/test/PayloadTokenizer.java rename to src/main/java/io/dashbase/clue/test/PayloadTokenizer.java index 41b07d9..babf89c 100644 --- a/src/main/java/com/senseidb/clue/test/PayloadTokenizer.java +++ b/src/main/java/io/dashbase/clue/test/PayloadTokenizer.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.test; +package io.dashbase.clue.test; import java.io.IOException; import java.io.StringReader; diff --git a/src/main/java/com/senseidb/clue/util/CustomBufferedIndexInput.java b/src/main/java/io/dashbase/clue/util/CustomBufferedIndexInput.java similarity index 99% rename from src/main/java/com/senseidb/clue/util/CustomBufferedIndexInput.java rename to src/main/java/io/dashbase/clue/util/CustomBufferedIndexInput.java index 8b2f080..3877b4a 100644 --- a/src/main/java/com/senseidb/clue/util/CustomBufferedIndexInput.java +++ b/src/main/java/io/dashbase/clue/util/CustomBufferedIndexInput.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.util; +package io.dashbase.clue.util; /* * Licensed to the Apache Software Foundation (ASF) under one or more diff --git a/src/main/java/com/senseidb/clue/util/IntArrayDocIdSetIterator.java b/src/main/java/io/dashbase/clue/util/IntArrayDocIdSetIterator.java similarity index 98% rename from src/main/java/com/senseidb/clue/util/IntArrayDocIdSetIterator.java rename to src/main/java/io/dashbase/clue/util/IntArrayDocIdSetIterator.java index 0c94555..34b1151 100644 --- a/src/main/java/com/senseidb/clue/util/IntArrayDocIdSetIterator.java +++ b/src/main/java/io/dashbase/clue/util/IntArrayDocIdSetIterator.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.util; +package io.dashbase.clue.util; import java.io.IOException; diff --git a/src/main/java/com/senseidb/clue/util/MatchSomeDocsQuery.java b/src/main/java/io/dashbase/clue/util/MatchSomeDocsQuery.java similarity index 97% rename from src/main/java/com/senseidb/clue/util/MatchSomeDocsQuery.java rename to src/main/java/io/dashbase/clue/util/MatchSomeDocsQuery.java index f355200..177f2ef 100644 --- a/src/main/java/com/senseidb/clue/util/MatchSomeDocsQuery.java +++ b/src/main/java/io/dashbase/clue/util/MatchSomeDocsQuery.java @@ -1,4 +1,4 @@ -package com.senseidb.clue.util; +package io.dashbase.clue.util; import java.io.IOException;