Package com.google.code.bing.search.client.BingSearchClient

Examples of com.google.code.bing.search.client.BingSearchClient.SearchRequestBuilder


   * @return the search request
   */
  private static SearchRequest createSearchRequest
                (BingSearchClient client, String applicationId, String query)
        {
    SearchRequestBuilder builder = client.newSearchRequestBuilder();
    builder.withAppId(applicationId);
    builder.withQuery(query);
    builder.withSourceType(SourceType.WEB);
    builder.withVersion("2.0");
    builder.withMarket("en-us");
    builder.withAdultOption(AdultOption.STRICT);
    builder.withSearchOption(SearchOption.ENABLE_HIGHLIGHTING);

    builder.withWebRequestCount(50L);
    builder.withWebRequestOffset(0L);
    builder.withWebRequestSearchOption(WebSearchOption.DISABLE_HOST_COLLAPSING);
    builder.withWebRequestSearchOption(WebSearchOption.DISABLE_QUERY_ALTERATIONS);

    return builder.getResult();
  }
View Full Code Here

TOP

Related Classes of com.google.code.bing.search.client.BingSearchClient.SearchRequestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.