question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I search into the index I got duplicate values. I got several documents with the same id and with the same content.

I do the query in this way:

storedIndex.search({query: {AND: {'*': [query.toLowerCase().trim()]}}})
.on('data', res =>console.log(res))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
fergiemcdowallcommented, Mar 8, 2018

@bmhall3 glad you got it sorted out. I wonder if search-index should move to a promises-based API? It seems that most people wrap it in promises these days…

1reaction
fergiemcdowallcommented, Jan 11, 2017

Yes, I get duplicates too. If I search like so

curl -g http://localhost:3030/search\?q\='{"pageSize":20,"category":{"field":"Land"},"query":{"AND":{"*":["eple"]}}}'

I get this doc twice:

{"id":"1484148829898-1072","scoringCriteria":[{"tf":[{"gte":"*○eple","lte":"*○eple","tf":315,"setLength":315}],"df":{"*○eple":1},"tfidf":{"*○eple":94.82444863415408},"boost":0,"score":94.82444863415408}],"score":94.82444863415408,"document":{"Varenummer":9701005,"Varenavn":"Pizzolato Prosecco Brut","Volum":1.5,"Pris":299.9,"Literpris":199.9,"Varetype":["Musserende vin"],"Farge":"Lys grønngul.","Lukt":"Aroma med preg av eple og sitrus.","Smak":"Livlig, lett sitrus- og eplepreget stil.","Land":"Italia","Underdistrikt":null,"Argang":null,"Rastoff":"Glera 100%","Alkohol":11}}

investigating…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find and remove duplicates - Microsoft Support
Find and remove duplicates · Select the cells you want to check for duplicates. · Click Home > Conditional Formatting > Highlight Cells...
Read more >
A Step-by-Step Guide on How to Remove Duplicates in Excel
Conditionally Format Unique or Duplicate Values · 1. Select the range of cells with duplicate values you want to remove. · 2. Next,...
Read more >
3 EASY Ways to Find and Remove Duplicates in Excel
One of the solutions (removing duplicates with power query) returns ... Timestamps 00:00 How to Remove Duplicate Values For Multiple Columns ...
Read more >
How to Find Duplicate Values in a SQL Table - Chartio
Learn how to check a database table for duplicate values using a simple query. ... This tutorial will teach you how to find...
Read more >
Highlight Duplicates in Google Sheets: Top 5 Methods
Do not select headers when highlighting duplicates with Array Formulas; Avoid highlighting specified duplicate values if necessary. Select the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found