Find alternative search terms

Improve an existing search service: help the user to understand the search results quicker and to formulate the search query more efficiently.
Find alternative search terms
GetAlternativeQueries
input: string Query, int NumberOfResults
output: AlternativeTerm[] AlternativeQueriesResult

Takes as an input a Query, and a NumberOfResults to restrict the number of suggestions.

Helps answer two questions:

What are the search entities identified within that query?
What are the alternative names to refer to these entities?

For example, a query “all blacks new zealand” is descected as follows:

  • all blacks
    • new zealand national rugby union team 0.46
    • Bonded by Blood 0.45
    • All-Black 0.01
  • new zealand
    • NZL 0.11
    • New Zealander 0.08
    • NZ 0.05
    • New Zealand’s 0.01

See also Try also suggestions.

Sample code in C#:

PingarAPIRequest request = new PingarAPIRequest();
request.AppID = "your app id";
request.AppKey = "your app key";
request.SearchSupport = new SearchSupportRequest();
request.SearchSupport.Query = "sample query";
request.SearchSupport.NumberOfResults = 5;
request.Language = Language.EN;

PingarAPIServiceSoapClient pingarAPI = new PingarAPIServiceSoapClient();
PingarAPIResponse response = pingarAPI.GetAlternativeQueries(request);
if (response.Error == null)
{
    Console.Write("Alternative terms for query: ");
    foreach (AlternativeTerm term in 
    response.SearchSupport.AlternativeQueriesResult)
    {
        Console.WriteLine(term.Title + " (" + term.Score + ")");
    }
}

 
VIEW DEMO OF RAPID DISCOVERY COMPONENTS
 

Explore Pingar


Share Points CIO Apache Solr BizSpark