Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve image anchors during migration #378

Closed
Mpdreamz opened this issue Jan 30, 2025 · 0 comments
Closed

Preserve image anchors during migration #378

Mpdreamz opened this issue Jan 30, 2025 · 0 comments

Comments

@Mpdreamz
Copy link
Member

The following error:

Error: `img-pre-refresh` does not exist in near-real-time.md.
   ┌─[/Users/mpdreamz/Projects/elasticsearch.md/docs/near-real-time.md]
   │
 7 │ Sitting between {{es}} and the disk is the filesystem cache. Documents in the in-memory indexing buffer ([Figure 1](near-real-time.md#img-pre-refresh)) are written to a new segment ([Figure 2](near-real-time.md#img-post-refresh)). The new segment is written to the filesystem cache first (which is cheap) and only later is it flushed to disk (which is expensive). However, after a file is in the cache, it can be opened and read just like any other file.

Is due to the fact we don't preserve image anchors during migration:

From near-real-time.md

:::{image} images/lucene-in-memory-buffer.png
:alt: A Lucene index with new documents in the in-memory buffer
:title: 
:::

We can preserve them by adding the :name: property

:::{image} images/lucene-in-memory-buffer.png
:alt: A Lucene index with new documents in the in-memory buffer
:title: 
:name: img-pre-refresh
:::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants