Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Arjones committed Jul 21, 2015
2 parents cfce529 + 9a0d1b2 commit ed1bfc4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ It relies on [Apache Lucene](http://lucene.apache.org/core/) so you get its powe
##Usage
The utility is built into a fatjar, so you just need to have **Java 7** installed
```
java -jar csv2lucene-1.1.jar <path-to-csv-file>
java -jar csv2lucene-1.1.2.jar <path-to-csv-file>
java -jar csv2lucene-1.1.jar -gui
java -jar csv2lucene-1.1.2.jar -gui
```

You can pick a sample into the examples directory:
```
java -jar target/scala-2.10/csv2lucene-1.1.jar examples/Brands_Share_of_Voice_201507071516_comments.csv
java -jar target/scala-2.10/csv2lucene-1.1.2.jar examples/Brands_Share_of_Voice_201507071516_comments.csv
Preparing to Index ...
Indexing examples/Brands_Share_of_Voice_201507071516_comments.csv ...
.........Done
Expand All @@ -28,6 +28,8 @@ Explore your CSV content
Press [tab] to auto-complete fields
Press q to quit
Default field for query terms: content
search>
```

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt.Keys._

name := "csv2lucene"

version := "1.1"
version := "1.1.2"

organization := "la.smx"

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/la/smx/util/csv2lucene/Searcher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.apache.lucene.search.IndexSearcher
*/
class Searcher(file: File, fields: Set[String]) {
val DEFAULT_FIELD_FOR_QUERY_TERMS = detectDefaultField
println(s"Default field for query terms is [ ${DEFAULT_FIELD_FOR_QUERY_TERMS} ]\n")
println(s"Default field for query terms: ${DEFAULT_FIELD_FOR_QUERY_TERMS}\n")

val dir = Lucene.openIndexDir(file)

Expand Down

0 comments on commit ed1bfc4

Please sign in to comment.