“MongoDB Text Search Exact Match” Respostas de código

Pesquisa de texto de MongoDB

db.stores.find( { $text: { $search: "java coffee shop" } } )
/*
  Use the $text query operator to perform text searches on 
  a collection with a text index.

  $text will tokenize the search string using whitespace and most 
  punctuation as delimiters, and perform a logical OR of all such 
  tokens in the search string.

  For example, you could use the following query to find all 
  stores containing any terms from the list "coffee", "shop", and "java":
*/
florinrelea

MongoDB Text Search Exact Match

Model.find({
  $text: {
  	$search: `"exact_match"`
  }
})
florinrelea

Respostas semelhantes a “MongoDB Text Search Exact Match”

Perguntas semelhantes a “MongoDB Text Search Exact Match”

Mais respostas relacionadas para “MongoDB Text Search Exact Match” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código