Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Plugins
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2011 at 21:34 UTC
Updated:
29 Nov 2011 at 16:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerHere is the patch. In general i'm not sure whether it's required to index both author and uid.
Comment #2
drunken monkeyThanks for catching that, you're right of course! But now I really checked, nothing else should be required.
We only need either uid or author, depending on what we use for the query. I now opted for "author", as it is considerably more useful for other purposes, and thus more likely to be indexed in any case. Thanks for that suggestion, too!
In theory, we could dynamically check if either of the fields is indexed and use that one, but in practice I think there's really no benefit in indexing "uid" anyways.
Patch attached, using "author".
Comment #3
dawehnerThanks! This patch works perfect at least for the version i use here.
Comment #4
drunken monkeyGreat, committed.