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

Failure to create index when no data is available #87

Open
kz26 opened this issue Jan 2, 2012 · 4 comments
Open

Failure to create index when no data is available #87

kz26 opened this issue Jan 2, 2012 · 4 comments
Labels

Comments

@kz26
Copy link

kz26 commented Jan 2, 2012

On a fresh installation, Haystack+Xapian fails to create an index (manage.py update_index rebuild_index do nothing) on a fresh install without any data. This causes the webserver to throw an HTTP 500 error:
InvalidIndexError: Unable to open index at /var/www/html/myproject/search_index

Refiled in response to https://github.com/toastdriven/django-haystack/issues/473

@notanumber
Copy link
Owner

This only happens if you have no data, correct? There are indexes defined, just no data to index, I'm assuming.

@kz26
Copy link
Author

kz26 commented Jan 4, 2012

Yes, that's correct. Since there's no data I suppose that technically there is no need to create a database, but it would be nice to fail gracefully instead.

@notanumber
Copy link
Owner

Absolutely. I'll add this as a "nice to have" feature.

@h3
Copy link

h3 commented Jan 20, 2012

I had the same problem .. because my client wanted to test his site with a fresh database.

The only workaround I found was to index the django Site app and simply not use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants