-
1. Re: URGENT : Query module - lots of descripencies
manik Aug 16, 2010 8:12 AM (in response to a_ananta)Could you pls try the latest release candidate for 4.1.0?
-
2. Re: URGENT : Query module - lots of descripencies
a_ananta Aug 16, 2010 3:54 PM (in response to manik)Thanks, using infinispan-core from 4.1.0CR2 helped.
But it looks like, Query modules doesn't work.
When I run the basic query, no matter what, cq. list() always contains the last element from thecache and NOT the one which is searched by query and matched the search criteria.
if I search by name=John and last element in cache is with name=Jim, cq.list gives the person Jim, while I'm exepcting Person John.
Look at the below method and constructor, in CacheQueryImpl constructor, classes are never passed, code is passing only 3 values,
I suppose this list of classes is the indexed classes from config files ( Am I correct???) , but it is null.....
public
CacheQuery getBasicQuery(String field, String search) throws org.apache.lucene.queryParser.ParseException {
QueryParser parser =
new QueryParser(field, new StandardAnalyzer());
org.apache.lucene.search.Query luceneQuery = parser.parse(search);
return new CacheQueryImpl(luceneQuery, searchFactory, cache);
}
CacheQueryImpl(Query luceneQuery, SearchFactoryImplementor searchFactory, Cache cache, Class... classes) {
= luceneQuery;
= cache;
= searchFactory;
.getIndexedTypesPolymorphic(classes);