google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Merge-join query on list-property fails on GAE 1.7 #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Document class with a list-property called 'tags'. Then save some 
entities with multiple tags.

2.Use something similar to the following code to search for matching entities:

Objectify ofy = ObjectifyService.begin();
Query<Document> fetch = ofy.query(Document.class);
for(int i = 0; i < searchTags.length; i++)
    fetch.filter("tags", searchTags[i]);
//now get results of query

What is the expected output? 
We expect to see search results returning if an entity matches more than one 
tag submitted.

What do you see instead?
The search fails to return any entities if more than one tag is used in the 
search.

What version of the product are you using?
Objectify 3.0 and AppEngine 1.7

On what operating system?
Windows 7

Please provide any additional information below.
This search query works perfectly on GAE 1.6 . 
When debugging into Objectify code, we see that " this.actual.addFilter(prop, 
op, value); " on line 149 in obectify.impl.QueryImpl class is deprecated in GAE 
1.7 that this may be the source of the problem, but it's just a guess. This 
problem has occurred in our local test environment, we have not tested it on 
GAE proper. 

Original issue reported on code.google.com by jgerso...@gmail.com on 28 Aug 2012 at 4:07

GoogleCodeExporter commented 9 years ago
Did you ever identify the issue? It's not related to the deprecated addFilter() 
method. Whatever is going on, this isn't likely to be an Objectify issue since 
we rely on GAE to process queries.

Original comment by lhori...@gmail.com on 14 Apr 2014 at 12:45