How to create criteria query in morphia?
I am using morphia for creating query for filtering data from database, I am having so many filters like
title like "s" or body equals "ggg"or desc equal "ffff".

Now i am using criteria based filtering using fluent queries,
like this,
query.criteria("title").containsIgnoreCase("s");


I having looping every filters, for example first time it creating query for filters, second for body, while second time looping executing 
query is like this {"title" :{"$regex:"s","$options":"i"},"body":"ggg"},
third time {"title" :{"$regex:"s","$options":"i"},"body":"ggg","desc":"ffff"}

I need help for how to "OR" is above queries,
I have used criteria 
query.or(previouscriteria,presentcriteria);
Its giving {$or:[{"body":"ggg"},{"desc":"ffff"}]} first one missed out

I need query like
 {$or:[{"title" :{"$regex:"s","$options":"i"},{"body":"ggg"},{"desc":"ffff"}]}


and i am trying to do it criteria[] i don't know how to add criteria to criteria[] dynamically and how to query using criteria[], 


Plz help me,
I am not in the situation to paste the code.


Thanks In advance,

How to create criteria query in morphia?
===

I am using morphia for creating query for filtering data from database, I am having so many filters like
title like "s" or body equals "ggg"or desc equal "ffff".

Now i am using criteria based filtering using fluent queries,
like this,
query.criteria("title").containsIgnoreCase("s");


I having looping every filters, for example first time it creating query for filters, second for body, while second time looping executing 
query is like this {"title" :{"$regex:"s","$options":"i"},"body":"ggg"},
third time {"title" :{"$regex:"s","$options":"i"},"body":"ggg","desc":"ffff"}

I need help for how to "OR" is above queries,
I have used criteria 
query.or(previouscriteria,presentcriteria);
Its giving {$or:[{"body":"ggg"},{"desc":"ffff"}]} first one missed out

I need query like
 {$or:[{"title" :{"$regex:"s","$options":"i"},{"body":"ggg"},{"desc":"ffff"}]}


and i am trying to do it criteria[] i don't know how to add criteria to criteria[] dynamically and how to query using criteria[], 


Plz help me,
I am not in the situation to paste the code.


Thanks In advance,
