azure document search default nature for searching text on azure db RRS feed

  • Question

  • dear 

    I need technical help regarding my Azure document search

    below my sample code

    var searchText = "Good Phase"
    var searchData = indexClient.Documents.Search(searchText,searchParameters)

    I need to know this document search which is  searchText = "Good Phase"

    how azure document treat this "Good Phase" to search

    means like

    1:- Good AND Phase (with AND operator)

    2:- Good OR Phase (With OR Operator)

    Monday, October 9, 2017 6:31 AM

All replies

  • Hi Amit,

    The way you have it, it will treat these words as an OR.  If you were to send:

    searchText = "\"Good Phase\""

    It would treat it as a single phrase.

    Please also note, there is an option called searchMode, where you can specify whether any or all of the search terms must be matched in order to count the document as a match.


    Principal Program Manager, Azure Search - Blog: http://blog.liamcavanagh.com

    Monday, October 9, 2017 2:05 PM