Examples of phrase search queries

You request phrase matching in the Conversation Web Service requests by enclosing a set of one or more search terms in quotation marks.

You can include phrase search queries in either record search or value search operations. You can combine phrase search with non-phrase search terms or other phrase terms.

The following examples illustrate a phrase search query.

A record search for a phrase "Mountain Bikes" is as follows:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Request xmlns="http://www.endeca.com/MDEX/conversation/3/0">
      <State>
        <TextSearchFilter Key="MySearchInterface" RelevanceRankingStrategy="numfields" 
          Mode="AllPartial" EnableSnippeting="false" Language="en">
          "Mountain Bikes"</TextSearchFilter>
      </State>
      <RecordListConfig Id="RecordList" MaxPages="30">
         <Column>ProductCategory</Column>
         <RecordsPerPage>5</RecordsPerPage>
      </RecordListConfig>
    </Request>
  </soap:Body>
</soap:Envelope>
A value search for values containing the phrase "Touring Bikes" is similar to the following abbreviated example:
<Request>
   <State>
     <Name>MyProductSearch</Name>
     <CollectionName>Products</CollectionName>
   </State>
   <ValueSearchConfig Id="ProdSearch" MaxPerProperty="5" 
        RelevanceRankingStrategy="static (nbins,descending)" Mode="Any" Language="en">
      <StateName>MyProductSearch</StateName>
      <SearchTerm>"Touring Bikes"</SearchTerm>
      <RestrictToProperties>
        <Property>ProductCategory</Property>
      </RestrictToProperties>
   </ValueSearchConfig>
</Request>