Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

make index file sparse (no null props) #117

@nkuehn

Description

@nkuehn

Hi,
the index.json file size is a critical limitation of this great plugin.
In my text index (which is too big with nearly 2MB) I saw that every document has a data structure.

    "1": {
      "id": 1,
      "title": "Category Examples Java",
      "url": "/complete-code-samples/java/CategoryExamples.html",
      "date": null,
      "categories": null,
      "tags": null,
      "is_post": false
    },

Including null values is inefficient, in size critical JSON it's better to completely omit the property.

Could be breaking to the client javascript, the client would have to be robust against missing keys (but maybe it is).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions