FullText Seach Using Parse Dashboard API match exact case

40 views Asked by At

Hi I have an application in angular 7 using Parse Dashboard to handle database. I am building a search algorithm which will search specific words with given input. However i want to match exact case of given input.

For Example if i search - telecom networks it should give results only for telecom networks not telecom alone or networks alone.

Here is the Code

  let s = '"'
  term.forEach(x => {
    s = s + '\"'
    s = s + x + '\" '
  })
  s = s.slice(0, -1);
  s = s + '"'
  if (s != '') {
    query.fullText('data', s, {diacriticSensitive: true});
  }

term is an array of strings from user input using query.fullText() i am getting response of networks alone also but i have to exclude it. i have searched everywhere but not solution is found.

Please help me to solve this problem.

0

There are 0 answers