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.

Replication and Options (fieldsToStore)

See original GitHub issue

i’m trying to create and replicate an index with fieldsToStore set on initialisation. when querying that index after replication I get hits, but the documents returned from search are always undefined. the same operation without fieldsToStore returns the documents as they were stored.

with fieldsToStore

{ totalHits: 1,
  totalDocsInIndex: 3,
  documentFrequencies: { '*○austausch': 1 },
  fieldWeight: { '*○austausch': 0 },
  query: [ { AND: [Object], NOT: [Object] } ],
  buckets: [],
  categories: [],
  hits:
   [ { id: '0.7027325540540822,39',
       score: 0,
       tfidf: [Object],
       document: undefined } ] }

without fieldsToStore:

{ totalHits: 1,
  totalDocsInIndex: 3,
  documentFrequencies: { '*○austausch': 1 },
  fieldWeight: { '*○austausch': 0 },
  query: [ { AND: [Object], NOT: [Object] } ],
  buckets: [],
  categories: [],
  hits:
   [ { id: '39',
       score: 0.4230871553996776,
       tfidf: [Object],
       document: [Object] } ] }

do I have to set fieldsToStore (or something similiar) when receiving data from a replication? i empty the target index using flush() before calling replicate

another difference I noticed between source and target of replication (also only when using fieldsToStore) is in the id field: on source I get id: '39' and on target it’s id: '0.7027325540540822,39'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
fergiemcdowallcommented, Apr 26, 2016

@iSOcH hmmm- replicating from linux to windows should work, since the export file is simply gzipped text. This is possibly an encoding issue.

Have you tried examining the file on your windows machine? Is it readable?

1reaction
eklemcommented, Apr 26, 2016

My bad, exactly what I wanted @fergiemcdowall =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

P4DTG: Planning your Replication - Perforce
Before configuring P4DTG to replicate between your defect tracker and Perforce jobs, plan which fields and data you will transfer between the systems....
Read more >
Implementing Data Replication from Employee Central
In this document, we explain how to make the basic settings in SAP SuccessFactors, the middleware (SAP. Cloud Integration), and SAP HCM for ......
Read more >
Flux: The Key to Edge Data Replication with InfluxDB
Flux: The Key to Edge Data Replication with InfluxDB. EDR enables developers to use the full capabilities of InfluxDB at the edge.
Read more >
DREADDDATA - IDOL - Micro Focus
An alternative name for the DOCUMENT sub-tree. IndexFields, Fields to store as index fields. KeepExisting, Modifies the KillDuplicatesOption operation.
Read more >
Configuration — CGRateS 0.11.0~dev documentation
All configuration options come with defaults and we have tried our best to choose ... if this is enabled the replication will be...
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