How to ignore "stop words" while sorting in MarkLogic?

Viewed 190

Is there any way to ignore "stop words" while sorting.

For example: I have words like

dixit

singla

the marklogic

On sorting in descending order the result should be singla, the marklogic, dixit

As in the above example the is ignored.

Any way to achieve this?

Update:

Stop word can occur at any place. for example

the MarkLogic

MarkLogic is the best

the MarkLogic is awesome

while sorting should not consider any stop word in the text.

Above is just a small example to describe the problem.

In actual I am using search:search API. For sorting, I am using sort-order search options. The element on which I have to perform sorting is dynamic. There are approx 30-35 elements.

Is there any way to customize the collation at this level like to configure some words (stop words) which will be ignored while sorting.

2 Answers
Related