A bigger question is will solr even be able to support this? I know I have seen lucene be able to do this and solr is built on lucene.
I have seen an example somewhere using google but can't seem to find it again, and the example was not complete in that I don't think it had the query portion on how I write my query statement for lucene. I remember seeing a NumericField and there is this NumericComparator.
Basically, I am trying a noSQL orm solution that offers indexing(on github) (though the client decides how many indexes per table and the partitioning methodology but you add entites to the index and remove them yourself and can use namedQueries though you have to get the index by name first before the query since one table may have millions of indexes). The two main things I want to achieve are that it all works with an in-memory nosql fake db and an in-memory index(lucene's RAMDirectory) AND then I want to switch those to plugging in cassandra and SOLR.
I basically need to
- figure out how to store integers, floats, etc.
- figure out how to write a lucene query when the targets are strings, floats, ints, etc.
Right now, if you need more details the main Query code of the project is found at
and on line 172 you can see I am adding a new Field every time but unfortunately some of these may be ints.
BIG QUESTION: Can SOLR even support int vs. string? (IF not, I will have to go with the hack of padding 0's on the front of ints, longs etc. so all ints are the same length).
IF SOLR can support it, then in lucene what is the best way or is there a good example for this?
The main index interface retrieved from NoSqlEntityManager.getIndex(Class clazz, String indexPartitionName) is (though not sure it matters)..