1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenForo Search Constraints

Discussion in 'XenForo Development Discussions' started by Xon, Mar 19, 2015.

  1. Xon

    Xon Well-Known Member

    I've recently been poking away at the XenForo's search system, and it looks like the Search Constraints are just a list of conditions and'ed together.

    The reason is while I can push constraints down for a type specific handler, general search ignores type specific handlers. I would like to be include additional constrains; but only for content of the correct type.

    I would like to be able to push the following attached to the search query:
    (content_type = 'post' and node in (<nodes with read access>)) OR (content_type = 'conversation' and 'my_user_id' in recipient ) ...

    Is there a better way? Or just ignore it and allow XenForo to filter out non-viewable results out of the result set.

Share This Page