Couldn't get Not Filter working

Hello, I know I do something wrong, but I couldn't figure out what.
I need to get really simple result back, with logic as following:
Get me all posts of users with provided IDs, but exclude 2 posts with
specific IDs.
Here is what I have:
https://gist.github.com/2772255
But it doesn't exclude the posts. I'm actually getting posts with CHIzzfjoB1
and 0oT84UVtB1 back.
Could you please help me out with query?

Thank you

On Tue, 2012-05-22 at 16:18 -0700, Eugene Strokin wrote:

Hello, I know I do something wrong, but I couldn't figure out what.
I need to get really simple result back, with logic as following:
Get me all posts of users with provided IDs, but exclude 2 posts with
specific IDs.
Here is what I have:
https://gist.github.com/2772255

But it doesn't exclude the posts. I'm actually getting posts
with CHIzzfjoB1 and 0oT84UVtB1 back.
Could you please help me out with query?

What is the mapping for post.postId?

Is it analyzed, or not_analyzed?

clint

Thank you

No,.. it is not analyzed, just indexed.

On Wednesday, May 23, 2012 4:50:23 AM UTC-4, Clinton Gormley wrote:

On Tue, 2012-05-22 at 16:18 -0700, Eugene Strokin wrote:

Hello, I know I do something wrong, but I couldn't figure out what.
I need to get really simple result back, with logic as following:
Get me all posts of users with provided IDs, but exclude 2 posts with
specific IDs.
Here is what I have:
https://gist.github.com/2772255

But it doesn't exclude the posts. I'm actually getting posts
with CHIzzfjoB1 and 0oT84UVtB1 back.
Could you please help me out with query?

What is the mapping for post.postId?

Is it analyzed, or not_analyzed?

clint

Thank you

Can you provide a fuller recreation? Including setting up teh index and the
relevant mappings, index sample data, and show the search that does not
work?

On Wed, May 23, 2012 at 1:18 AM, Eugene Strokin eugene@strokin.info wrote:

Hello, I know I do something wrong, but I couldn't figure out what.
I need to get really simple result back, with logic as following:
Get me all posts of users with provided IDs, but exclude 2 posts with
specific IDs.
Here is what I have:
https://gist.github.com/2772255
But it doesn't exclude the posts. I'm actually getting posts with CHIzzfjoB1
and 0oT84UVtB1 back.
Could you please help me out with query?

Thank you