IDOL Content Component 12.12

# Exact Phrase Search

You can search for exact phrases rather than conceptual matches by putting quotation marks (`" "`) around a string of words.

For example:

    http://localhost:9100/action=Query&Text="world market"

When AdvancedSearch is set to `True` in the configuration file, this query matches the phrase exactly (that is, it matches the exact form of all the terms, rather than also matching similar terms that stems to the same value).

NOTE: During the exact phrase search process, IDOL Content Component stems the terms, matches documents that contain the stem, and then finds occurrences that match your exact unstemmed form. This stemming step means that an exact phrase search might not match a document in a different language that contains the exact unstemmed term, because the stemming rules are different. To match these documents, you must use GenericStemming.

When AdvancedSearch is set to `False`, the query matches the stemmed terms, but they must still appear in the specified order and proximity. In both cases, IDOL Content Component removes any stop words from the query phrase, unless you also configureStopWordIndex.

To search for multiple strings, separate the individual strings with plus symbols or spaces and put quotation marks around each string.

For example:

    http://localhost:9100/action=Query&Text="birthday party" "gift wrap" "surprise guest"

NOTE: To search for a string that contains a text symbol, you must use a FieldText query (see the FieldText action parameter).

## See Also

- Case-Sensitive Search

- AdvancedSearch configuration parameter

- StopWordIndex configuration parameter

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL IDOL Content Component 12.12

Topic Title: Exact Phrase Search