cancel
Showing results for 
Search instead for 
Did you mean: 

How do the search with fulltext considering the minus and underscore with postgres?

Thiago_Valentim
Champ in-the-making
Champ in-the-making

When I try to look for a plant that contains the minus it does not return a result even escaping the minus sign, but this behavior happens only when the minus sign is followed by some number.

my query: SELECT cmis:name, dc:title FROM arizona:file WHERE CONTAINS(' "rafa 123" ') alt text

my query: SELECT cmis:name, dc:title FROM arizona:file WHERE CONTAINS(' "rafa\\-123" ') alt text

my query: SELECT cmis:name, dc:title FROM arizona:file WHERE CONTAINS(' "rafa-123" ') alt text It seems that he considers the minus sign before a number as an arithmetic operation ...

  1. Is there some setting I can do to change this behavior?

  2. If I change the algorithm to consider the minus and underscore to be identified as caracters this behavior change? 2.1 If this is the solution how can I proceed?

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

Could you replace the screenshots with text please? It makes for an easier-to-read question, and allows for searchability.

Thiago_Valentim
Champ in-the-making
Champ in-the-making

I edited the post, added the query near the screenshots

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

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.