Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paria Shiri 36 posts 109 karma points
    Jun 12, 2023 @ 10:15
    Paria Shiri
    0

    ExamineX search - ParentId method doesn't work

    I need to implement a search on a specific node which I have its Id, my search query is like this:

       var query =
                    index
                        .Searcher
                        .CreateQuery("content")
                        .ManagedQuery(searchTerm).And()
                        .ParentId(nodeId);
    

    My search result brings back some data with different ParentId, did I do something wrong?

  • Akhil Kulshrestha 2 posts 72 karma points
    Nov 30, 2023 @ 14:28
    Akhil Kulshrestha
    0

    Did you get a solution to this? In my understanding Managed Query works in a way with all the result set based on search criteria and then on top of the result set it adds in AND/OR operators. Rather using ManagedQuery use specific node type/field type based search and it will work.

Please Sign in or register to post replies

Write your reply to:

Draft