Search API returns results twice when they meet more than one condition

24 views
Skip to first unread message

Christopher Ramírez

unread,
Jun 21, 2012, 2:43:19 AM6/21/12
to google-a...@googlegroups.com
I know that Search service is not stable enough, so this is just a kind of bug report.

I've been playing with Search API. Looks amazing! But I noticed it return a record twice when it meet more than one search filter. For example:

results = index.search(
    search.Query(
        query_string = '(name:Christopher OR lastname:Ramirez)',
        options = search.QueryOptions(
            limit=50, sort_options=search.SortOptions(
                expressions=[search.SortExpression(
                    expression='name', default_value='')],
                limit=100)
        )
    )
)


With th above code, records which match both filters (NAME and LASTNAME) will be returned twice.

Also, Development SDK 1.6.6 throws an exception if a use a non ASCII char in the above filter string. The production enviroment didn't throw any error.
Reply all
Reply to author
Forward
0 new messages