-1

I am trying to drop the "-" character from the stop words list, but I am not able to. I have created my custom stop list which inherits from the system stop list. When I try to delete the "-" from the stop list, sql server tells me that that character is not on the stop list. This is the sql statement I am using:

ALTER FULLTEXT STOPLIST "mystoplist" DROP  '-' LANGUAGE 'Brazilian';

I have also tried to create a stop list that does not inherits from the system, and it also does not work. At every change I repopulate the catalog, of course.

I guess sql server is using somehow the system stop list also, but I do not know how to delete characters from the system stop list.

What I need is that strings like "blablabla-blablala" (there are some portuguese words that use the "-" character) to be only found when I execute a query like:

where contains(field, "blablabla-blablala")

And to be never found when I execute a query like:

where contains(field, "blablabla")

Any ideas?

Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121

1 Answers1

0

It turned out that this is a issue in the word breaker, not in the stop list as described here.

"/" is considered as a word breaker for some languages (included mine).

There is nothing I can do but try to implement my own IFilter.

Community
  • 1
  • 1
Rafael Colucci
  • 6,018
  • 4
  • 52
  • 121