We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37138
    • 12 Posts
    Hello,
    what to add to search string so as to show only thiose documents that have published=1 in search rsesult.
    Tried &filter=`published,1,2` and where=`published==1` but it still shows those documents that are not published.
    Here is my search string
    [!AjaxSearch? &ajaxSearch=`0` &parents=`174` &where=`published==1` &AS_showForm=`0` &tplResult=`searchresults` &tvPhx=`tv:displayTV` &grabMax=`30` &tplResults=`search_main_results` &minChars=`2` &maxWords=`30` !]
      • 37138
      • 12 Posts
      gee? how to show only those documents in search result which have
      published==1
        • 5811
        • 1,717 Posts
        By default the search occurs only in published documents.

        &where=`published==1`
        is not an allowed parameter for ajaxSearch.