[infinispan-dev] Query API and non POJO entries

Manik Surtani manik at jboss.org
Mon Sep 7 09:49:53 EDT 2009


On 3 Sep 2009, at 09:28, Michael Neale wrote:

> This is kind of directed to Navin - I haven't really caught up on
> how/what you are doing with with the query stuff (had a quick search
> of the mailling list), but I had a few thoughts/ideas:
>
> I would like to be able to query content in the cache which is not a
> POJO - as in the data has some meaning which is not fields of a pojo
> (eg it is JSON, or XML, or some binary format)  - so say we know that
> an entry in the cache is a certain type (MIME type) we can index it
> accordingly (I have done this with Lucene in Jackrabbit before and it
> works quite nicely) - I am proposing a MIMECacheEntry for this (this
> is obviously of use to me in the RESTful interface) - do you think
> this is doable ? (I have some other ideas re searching within key
> string patterns as well which would be really nice).

This is actually a pretty cool idea.  The tricky bit would be getting  
Hibernate Search to work nicely with this, since MIMECacheEntry values  
would have to be indexed separately from any other types.  But it  
shouldn't be too hard all the same.

Here is one monkey wrench: collections containing both client objects  
as well as MIMECacheEntries?  :-)  Or is that just insane?

>
> Thoughts?
> (and I need to have a look at that branch I think).
>
>
>
> -- 
> Michael D Neale
> home: www.michaelneale.net
> blog: michaelneale.blogspot.com
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list