Are there options to access Data from multiple search filters or Show Combine Results that have meet all the Filter criteria

Particularly in this case I have developed my own filter, and in the search, I chose Motion Filter and added to the existing search with my filter already set. The Result Panel seems to show all results from either search filter. I wonder if I am able to access data from both filters ? or retrieve the search results from multiple filter before displaying then filter those results and display the output ?

Please fill in a little context information. What components / classes are you working with?

It might be a good idea if you share a snippet of your source code with filter implementation.

Hi Bo, I’m so sorry for the huge delay in replying.

It is a bit hard to show a snippet, as the source codes are in multiple places. I have attached an image of the results here. In the left column, I got both motion and our custom face detection filters in the same search. I also deliberately post blur the faces from the screenshots. What happen in the code is when there’s change in Faces filter, I response by doing the search in this method :

protected override void Search(Guid sessionId, DateTime from, DateTime to, IEnumerable<Item> items, CancellationToken cancellationToken)
        {
         //Some search processing using data from filter are removed here,
         //but results are fed back using the line below
                    if (resultChunk.Count> 0)
                    {
                        FireSearchResultsReadyEvent(sessionId, resultChunk);
                    }
                }
            }
        }

On the results area, those without the bounding boxes are actually from our search above. My expected search results from having both filter in one search is I want to show those pictures with the bounding boxes and the guy with blue shirt Only. Will there be anyway to filter the results out or combine information from both filter then do the search and display results ? I hope it make a bit more sense here. Faces are post blurred for privacy purpose.

If you have a search with multiple search categories (search agents) included then it is not possible for one search agent to access information about neither the filter values nor the search results for the other search agents. It is by design that there is this complete separation between the search agents that are active in the search. We might at a later time allow the user of the Smart Client to only show results that are “overlapping” all the search agents but when and if we create this functionality it will be done in the Smart Client code without affecting the search agents.

It would be really interesting to understand the reason why your search agents needs information about the other filters and results related to other search categories (search agents) in the search. If you understand the problem it might be easier to point to a solution. In your case if the user does not wants to see the results for the motion search category this he will simply remove that category from the search.