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.

possible error when ID is generated by search-index

See original GitHub issue

Using the web script.

When you add one and one doc, you get docs with keys like this: DOC 0 DOC 2 DOC 3 DOC 4 DOC 5

DOC 1 is missing, and all word references points to 2 or higher, so you will never get Doc 0 as a result and get results (DOC 2) for stuff only found in DOC 0.

How to reproduce: take the web demo and remove the ID generation stuff.

Not a big problem. The workaround was to generate ID’s based on a hash of title string + body string.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MpMeetPatelcommented, Jul 4, 2020

Hi, just to tell you guys, I used uuidV4 for id generation and used _id for assignment in the search-index PUT method. All issues related to Id just disappeared and worked fine.

1reaction
fergiemcdowallcommented, Jul 4, 2020

Great- thanks for the feedback @MpMeetPatel 👍🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows search index/catalog gets corrupted daily.
I keep getting these errors in event log: Event ID 7040. The search service has detected corrupted data files in the index {id=4810 ......
Read more >
JCR troubleshooting topic: search index - IBM
This error has been fixed in 6.0. 1.1, but can occur if the search index has not been rebuilt since upgrading to 6.0....
Read more >
"Failed to create search index" script error during reload
This article explains how to avoid the " Failed to create search index " script error during reload. A data load may fail...
Read more >
Solr Error When Rebuild xDB Search Index
I'm working with Sitecore 9.0.2 and Solr 6.6.2. When i tried to rebuild xDB search index, i saw some error in log of...
Read more >
- Sitecore 8.1 and Solr6.6.0 error while rebuilding the search ...
Hi guys, i'm facing with an error message while i'm trying to Rebuild search index. I'm using Sitecore8.1 and Solr 6.6.0,.
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