Skip to content

Commit

Permalink
release 2.1.1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
vroyer committed Feb 3, 2016
1 parent cedc49b commit 60ff3b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -41,3 +41,4 @@

2.1.1-1 - 2016-02-03
* Add support for parent-child relation-ship
* Bug fix when indexing inet type (Internet Address).
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -11,7 +11,7 @@

<groupId>org.elassandra</groupId>
<artifactId>elassandra</artifactId>
<version>2.1.1-1</version>
<version>2.1.1</version>
<name>Elassandra: Core</name>
<description>Elassandra - ElasticSearch for Cassandra</description>

Expand Down
Expand Up @@ -40,6 +40,7 @@
import org.elasticsearch.common.Explicit;
import org.elasticsearch.common.Numbers;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.network.NetworkAddress;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.Fuzziness;
import org.elasticsearch.common.xcontent.XContentBuilder;
Expand Down Expand Up @@ -181,7 +182,7 @@ public Long value(Object value) {
return null;
}
if (value instanceof InetAddress) {
return ipToLong( ((InetAddress) value).getHostAddress() );
return ipToLong( NetworkAddress.formatAddress((InetAddress)value));
}
if (value instanceof Number) {
return ((Number) value).longValue();
Expand Down

0 comments on commit 60ff3b8

Please sign in to comment.