Announcement

Collapse
No announcement yet.

Search Query seems to fail ?? and inaccurate notfications for user posts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search Query seems to fail ?? and inaccurate notfications for user posts

    Ok, so eperimenting with the queries, I used the search module as a sort of query generator and as a link it returned the correct results.

    However I have several RSS feeds coming in, which I wanted to exclude,

    This was the query I used which should exclude results from the target categories for the RSS posts.

    It is basically just asking for posts since last visit exclduing topics in categories X,Y,Z

    /search?searchJSON=%7B%22date%22%3A%22lastVisit%22%2C%22type%22%3A%5B%22vBForum_Event%22%2C %22vBForum_Link%22%2C%22vBForum_Photo%22%2C%22vBForum_Text%22%2C%22vBForum_Video%22%5D%2C% 22channel%22%3A%5B%221%22%2C%222%22%2C%2236%22%2C%221443%22%2C%2238%22%2C%223%22%2C%2241%2 2%2C%2240%22%2C%2253%22%2C%22139%22%2C%2251%22%2C%2243%22%2C%2244%22%2C%2245%22%2C%22106%2 2%2C%2246%22%2C%2247%22%2C%22142%22%2C%2252%22%2C%2255%22%2C%22143%22%2C%221123%22%2C%2215 %22%2C%2216%22%2C%2217%22%2C%2218%22%2C%2222%22%2C%2219%22%2C%2220%22%2C%2221%22%2C%2223%2 2%2C%2224%22%2C%2225%22%2C%2226%22%2C%2227%22%2C%2228%22%2C%2229%22%2C%2230%22%2C%2231%22% 2C%2232%22%2C%2233%22%2C%2234%22%2C%2235%22%2C%221135%22%2C%22522%22%2C%2214%22%5D%2C%22so rt%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22view%22%3A%22compact%22%2C%22exclude_typ e%22%3A%5B%22vBForum_PrivateMessage%22%5D%7D&btnSubmit

    Now a part clue could be that I see email notficiations for these posts in my inbox, saying "ABCDE" who is a registered use has just posted in the categories for these RSS feeds, which they did not, so that notification is false, the RSS feeds have 3 dedicated user accounts which are Bot A,B,C registered users cannot post in those forums

    I am also seeing results from posts in my excluded categories from that query.

    Any help appreciated

    John
    Thanks In Advance

    John

  • #2
    The search query and notification emails are unrelated. They have nothing to do with each other.

    Let's look at the search query first. I am going to put it into a more readable format...

    /search?searchJSON={"date":"lastVisit","type":["vBForum_Event", "vBForum_Link","vBForum_Photo","vBForum_Text","vBForum_Video"],"channel":["1","2","36","1443","38","3","41","40","53","139","51","43","44","45","106","46","47","142 ","52","55","143","1123","15 ","16","17","18","22","19","20","21","23""24","25","26","27","28","29","30","31"% 2C"32","33","34","35","1135","522","14"],"sort":{"lastcontent":"desc"},"view":"compact","exclude_type":["vBForum_PrivateMessage"]}&btnSubmit

    A couple of things here:
    • You're not excluding any channels. If you include channel 1 (Home Page) then every single channel is included. If you include channel 2 (Forums), then every single forum will be included in the search. You've included both of them. In short, your RSS directories are not excluded.
    • &btnSubmit doesn't do anything when sending a JSON Query via the Address Bar or in the Module Config.
    We did add a new method to exclude channels from a search in 5.5.6. Currently available in modules. I am asking for information on doing this in JSON.



    What is the exact link provided in the Notification email that you received?

    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      Wayne

      In the advanced search box I highlighted the forums I wanted in the list box then used CTRL click to deselect the ones I did not need (only 3) which I assumed would have them excluded ?

      But I would have had the top level (category) for that branch selected and it contains a total of 8 forums.

      Are you saying that the categories and home channels shown in the search select box if selected ignores anything else under it and will include all forums regardless. ??

      Just trying to understand how it works.

      I just selected all (as you can see) then excluded the 3 I did not want which I assumed to be sufficient.

      Seems I have to select all, deseclect Home and all top level categories then any forums I wish not to have either.

      Cheers, I will get the other issues in next reply, I should really have done 2 topics

      John
      Thanks In Advance

      John

      Comment


      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        That is exactly what I am saying. If you include Channel 1, every channel will be included regardless of what you spend the time checking and unchecking.

      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        Try something like this:

        Code:
        search?searchJSON={"module_filter_nodes":{"exclude":[3],"include_children":1},"sort":{"relevance":"desc"},"view":"","exclude_type":["vBForum_PrivateMessage"]}
        Where it says 3 you can set this to a comma separated list within quotes like - "3, 8, 12"

        If you don't want to include children set that to 0. Children would be any channel under the channels listed under exclude.

      • john_rsd
        john_rsd commented
        Editing a comment
        Ah right OK, so my error was in selecting top levels as that over rides any selection below, so select isform bottom levels up

        Right I get it now Wayne, thanks for the patience, only select the actual forums wanted and never select categories or top level channel. Cool

    • #4
      Issue on email notifications

      I have 3 forums which are populated from user accounts Web Robot A,B and C respectfully.
      These forums are excluded from registered users reply or post as they are feeds, read only, the robot users are in a group of there own and not allowed outside of their respective forums defined by group permissions.

      However I get email notifications such as these, the "REGISTERED USER" is an actual registered users name who cannot post in that forum.

      Subject : There is a new post in Forum WHATS HAPPENING ON THE FACEBOOK GROUP // this is correct
      Message :

      "REGISTERED USER" has just posted in the WHATS HAPPENING ON THE FACEBOOK GROUP forum of Hillman Imp Forums under the title Hi thanks for add. Is there anyone in the northeast of England have a bonnet for a imp for sale

      This topic is located at https://www.hillmanimp.org/node/2672

      Here is the message that has just been posted:
      ***************
      Hi thanks for add. Is there anyone in the northeast of England have a bonnet for a imp for sale
      More...
      ***************
      The RESISTSERED USER names is variable, sometimes the same, somtimes other acco****s however none of these users made these posts, they are a feed from FB from a completely different person.

      There may be a simple explanation but the users have contacted me to enquire what is happenning as they did not make these posts.

      John
      Thanks In Advance

      John

      Comment


      • john_rsd
        john_rsd commented
        Editing a comment
        I am looking at the notification now as a notification of a new post.

        The problem is that the REGISTERED USER is and actual name like "fred blogs" and a real actual user, NOT the actual user accounts setup to make the posts who have names Web Robot A, B and C

        So that first line should read

        Web RobotA has just posted in the........ instead a registered user not even online at the times username is inserted.

        The only edit I made in that email was to change the actual registered users name with REGISTERED USER

      • john_rsd
        john_rsd commented
        Editing a comment
        Wayne, see here https://www.hillmanimp.org/forum/mai...facebook-group

        That is the actual posts, the Web Robot name is getting swapped for a real registered user name

      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        Probably the same as this issue - https://tracker.vbulletin.com/vbulle...sues/VBV-16808

        Not many people subscribe to incoming RSS feeds so it really hasn't been a priority to fix.
    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X