All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Can Low Search return only entry ids without the template parser?

TJ Draper 5 Jun 2014 15:25 question, complete

In Low Search, is there a tag or hook or something to return *only* a list of entry ids without running through the template parser at all? I’m dealing with massive amounts of data and getting a lot of timeout errors and I need to write a custom plugin and query based on entry ID that will get only data I am interested in to get things a little more efficient. I couldn’t find anything in the docs or here on get satisfaction, but I figure there’s got to be a way.

Replies

  1. Low 5 Jun 2014 15:41

    The trouble here is that some of the filtering is done by the channel:entries tag itself. Things like status, expired/future entries, etc. Before I call channel:entries, I know which entry IDs are valid then, but that can still be reduced by those native params. And there is no way to get a full list of IDs from channel:entries. The info simply isn't there.

    You could try using the low_search_channel_entries hook to bypass calling the channel:entries tag altogether. But you'd have to do your own filtering by status etc to get the results you want.

  2. TJ Draper 5 Jun 2014 15:48

    Okay, thanks! I’ll see what I can do.