Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
Fusejs is not working properly for locations

I want to search for data,Fusejs returns the wrong result. Suppose I have a location like (Sector-10, Sector-10/1, Sector-10/2, Sector-8) when I type "Sector8"it returns results like ( {Sector-10, Sector-10/1 .....} ). I want a result like if I type "Sector8" it should return" `Sector8" at the beginning. Could someone please help me?

Data

[
  {label:'Sector-10',value:238},
  {label: 'Sector-10/1', value: 1781},
  {label: 'Sector-10/2', value: 141},
  {label: 'Sector-11/4', value: 1780},
  {label:'Sector-8',value:8834}
]

Code

const options = {
 caseSensitive: false ,
  useExtendedSearch: false,
  threshold: 0.9,
  keys: [
    "label",
  ]
};

const fuse = new Fuse(list, options);

// Change the pattern
const pattern = "sector8"

return fuse.search(pattern)
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda