cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search: Search for exact phrase in its entirety?

cpaul
Champ on-the-rise
Champ on-the-rise
Hi all,

Is there a way to customize Share's advanced search to search for an exact phrase in its entirety?

For example, I have a text attribute with a constrained list of 2 values that allow it to be set to either "ABC" and "ABC DEF". In my advanced search page, if I select "ABC", I will get back results that have "ABC DEF" as well. This makes sense because that phrase exists in items that have the latter attribute value.

I suppose more specifically I'm wondering if there's a way to indicate that the search should start and end with the search term. I see in the FTS Syntax Wiki page, spans and positions are not yet implemented, so maybe I've answered my own question here, but thought I'd toss it to the community to see if anyone has experience doing this.

Thanks!
Chris
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

what is the index tokenisation mode for your propert? It needs to be "false" for exact phrases to work via Advanced Search as otherwise partial matches are possible in a scenario like yours.

Regards
Axel

andy
Champ on-the-rise
Champ on-the-rise
Hi

If you set your property to index-tokenised "both" you can do token and pattern matching.
You force pattern patching using =

e.g.   =cm:name:"woof"     for pattern
         ~cm:name:"woof"     for tokenised match
           cm:name:"woof"     defaults to tokenised - someday we will make the default an option on the property definition

Andy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.