Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
switched to 1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
maggiolo00 authored and maggiolo00 committed Jun 16, 2014
1 parent e21febd commit 1e88291
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-lucene</artifactId>
<version>1.7</version>
<version>1.7.4-SNAPSHOT</version>
<packaging>jar</packaging>

<name>lucene</name>
Expand All @@ -14,7 +14,7 @@
<properties>
<javac.src.version>1.6</javac.src.version>
<javac.target.version>1.6</javac.target.version>
<orientdb.version>1.7</orientdb.version>
<orientdb.version>1.7.4-SNAPSHOT</orientdb.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ protected static Query getQueryParser(OIndexDefinition index, String key, Analyz

} else {
queryParser = new MultiFieldQueryParser(version, index.getFields().toArray(new String[index.getFields().size()]), analyzer);
key = QueryParser.escape(key);
}
return queryParser.parse(key);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public OLuceneSpatialIndexManager(OShapeFactory factory) {
super();
this.ctx = SpatialContext.GEO;
this.factory = factory;

SpatialPrefixTree grid = new GeohashPrefixTree(ctx, 11);
this.strategy = new RecursivePrefixTreeStrategy(grid, "location");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,15 @@ public OLuceneTextOperator() {
super("LUCENE", 5, false);
}

// @Override
// protected boolean evaluateExpression(OIdentifiable iRecord, OSQLFilterCondition iCondition, Object iLeft, Object iRight,
// OCommandContext iContext) {
// return false;
// }

@Override
public OIndexCursor executeIndexQuery(OCommandContext iContext, OIndex<?> index, List<Object> keyParams, boolean ascSortOrder) {
OIndexCursor cursor;
Object indexResult = index.get(new OCompositeKey(keyParams));
if (indexResult == null || indexResult instanceof OIdentifiable)
cursor = new OIndexCursorSingleValue((OIdentifiable) indexResult, new OSpatialCompositeKey(keyParams));
else
cursor = new OIndexCursorCollectionValue(((Collection<OIdentifiable>) indexResult).iterator(),
new OSpatialCompositeKey(keyParams));
cursor = new OIndexCursorCollectionValue(((Collection<OIdentifiable>) indexResult).iterator(), new OSpatialCompositeKey(
keyParams));
return cursor;
}

Expand Down
7 changes: 7 additions & 0 deletions src/test/java/com/orientechnologies/test/LuceneTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.orientechnologies.test;

/**
* Created by enricorisa on 29/05/14.
*/
public class LuceneTest {
}

0 comments on commit 1e88291

Please sign in to comment.