Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1087

QueryFactory Object does not exist

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.0.0.CR4
    • 5.0.0.CR1
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Low

      I am trying to query the infinispan cache using your documentation at http://community.jboss.org/wiki/QueryingInfinispan/diff?secondVersionNumber=19

      See section "usage with Infinispan 5":
      When using Infinispan 5, it's a bit simpler: you don't need the QueryHelper, and just create a QueryFactory directly from the cache:

      QueryFactory qf = new QueryFactory(cache);
      CacheQuery cacheQuery = qf.getQuery( any org.apache.lucene.search.Query );
      List<Object> found = cacheQuery.list();

      Problem:
      org.infinispan.query.QueryFactory; does not exist in infinispan-query.jar from the Infinispan infinispan-5.0.0.CR1-bin.zip download.

      It exists in infinispan-query.jar from infinispan-4.2.1.FINAL
      and in the 5.0 API javadoc but not in the infinispan-query.jar from the Infinispan infinispan-5.0.0.CR1-bin.zip download.

      Thoughts?
      Thanks
      Jeff

      5/9/11
      I would like an example of querying infinispan, using the latest APIs.

      org.infinispan.query.impl.CacheQueryImpl;...?
      org.apache.lucene.search.Query etc...

      Thanks
      Jeff

            [ISPN-1087] QueryFactory Object does not exist

            sgrinove Can you change the "docs," tag to "docs"? The problem is that this (I think) erroneous tag appears globally in auto completion encouraging further errors. Thanks :-D

            Paul Robinson added a comment - sgrinove Can you change the "docs," tag to "docs"? The problem is that this (I think) erroneous tag appears globally in auto completion encouraging further errors. Thanks :-D

            sorry for the delay, I updated the wiki properly.

            Sanne Grinovero (Inactive) added a comment - sorry for the delay, I updated the wiki properly.

            Looks like the wiki needs to be updated on using the Query module in 5.x.

            Manik Surtani (Inactive) added a comment - Looks like the wiki needs to be updated on using the Query module in 5.x.

            I think I need to use import org.infinispan.query.impl.CacheQueryImpl;

            Jeff LaFrate (Inactive) added a comment - I think I need to use import org.infinispan.query.impl.CacheQueryImpl;

              sgrinove Sanne Grinovero (Inactive)
              jlafrate1 Jeff LaFrate (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: