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

Fix indexing content from Emacs #883

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Conversation

aam-at
Copy link
Contributor

@aam-at aam-at commented Aug 6, 2024

Previously force was passed as a query param to the single indexing API. After the recent API updates, it is meant to select the API method to use (PATCH vs PATCH). Converting force argument to a bool fixes implementing this new behavior

…exing

Previously, the code incorrectly treated all non-nil values as true, leading to
the index being re-indexed with the force flag whenever the user selected to
update the index.
Copy link
Member

@debanjum debanjum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good catch, this should fix indexing your documents on Khoj from Emacs!

@debanjum debanjum changed the title Fix emacs if syntax Fix indexing content from Emacs Aug 16, 2024
@debanjum debanjum merged commit 2b1482d into khoj-ai:master Aug 16, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants