Greetings,

    I am using neo4j in a language specific environment, and I have to 
support English, French, Spanish, and Portuguese languages so far.    I 
figured out how to setup an automatic index, specifying the language and 
that appears to work well.    I am now adding a feature that supports date 
range searching, and I'm doing it by using a custom string pattern to 
represent a date...  SecuriDate_2015_05_04 would be today (May 4th, 2015). 
    SecuriDate is there because when I convert formats, for now I really 
have no way of knowing this is a date that needs conversion, except by the 
content of the data.

   So I am using lexical collation to provide date range support, and 
searching using the Lucene range function through a REST Query.   When I 
use the English analyzer, things seem to work well.   I can do range 
searching using a query like: 
http://localhost:7474/db/data/index/node/node_auto_index?query=((DateOfBirth:([SecuriDate_2014_11_16
 
TO *])))&order=score and it works as desired.   I can change the date in 
the query, and I see the results as expected.

   When I use the French analyzer, some queries fail, in that they return 
data that shouldn't be returned... not all data, just some.

   That same query will return nodes that contain: "SecuriDate_2000_01_01", 
"SecuriDate_2011_02_04", etc.

The following query works, and just returns the node containing: "
SecuriDate_2014_09_03"

  
 
http://localhost:7474/db/data/index/node/node_auto_index?query=((DateOfBirth:([SecuriDate_2014_01_01
 
TO SecuriDate_2014_12_31])))&order=score

This query fails returning many nodes almost all of which are before 
"SecuriDate_2014_09_03":

  
http://localhost:7474/db/data/index/node/node_auto_index?query=((DateOfBirth:([SecuriDate_2014_01_01
 
TO SecuriDate_3000_01_01])))&order=score

I'm struggling to create a good example of this, as sometimes it seems to 
work as desired for a simple case.

This is using the most recent production release: Neo4j 2.2.1 and is 
running on Windows.

I appreciate any suggestions as to where to trouble shoot this.

Thanks,

   - Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to