Not getting proper result by Search API

Hi everyone.

$searchQuery.Add("Query", "Testing alerts on staging for forum post")
$searchQuery.Add("FieldFacets", "category,count,12,0,0!0||user,count,12,0,1||group,count,12,0,1!1")
$searchQuery.Add("FieldFilters", $fieldfilters)
$searchQuery.Add("Collapse", true)
$searchQuery.Add("PageSize", $pageSize)
$searchQuery.Add("PageIndex", $ajaxCurrentIndex)
$searchQuery.Add("Tags", "ABC")
$searchQuery.Add("LogicallyOrTags", true)
#set ($results = $core_v2_searchResult.List($searchQuery))

NOTE: please ignore variables.

If i am running above code to search forum by text  "Testing alerts on staging for forum post" (this text is only contain by forum reply ). i am not getting data because reply does not contain ABC tag but forum thread contain ABC tag.

SO my question is, it is necessary that reply should also contain the same tag passed into search query.

Parents
  • Setting the Tags property (or other properties) will narrow/filter results while using the query to "find" the initial set. Are you wanting to return results with the specified query OR results with tag:ABC? If so append "tag:abc" to the query -> (without quotes) "Testing alerts on staging for forum post tag:abc". This will rank results that are tagged with "abc" and the terms higher but also pull in results that do not have any of the terms but do have the tag "abc".

  • thansk Kevin for reply.

    but my question is still open, reply containing "Testing alerts on staging for forum post" is not coming by search result even i have applied you suggested logic like "Testing alerts on staging for forum post tag:abc".

    so is it necessary that reply should also contain tag ABC then only it will come into result set.

Reply Children
No Data