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

Reindex after schema change #16

Open
reinhardt1053 opened this issue Jun 3, 2016 · 2 comments
Open

Reindex after schema change #16

reinhardt1053 opened this issue Jun 3, 2016 · 2 comments
Labels

Comments

@reinhardt1053
Copy link

  • I updated my custom whoosheer class with a new field.
  • I deleted the WHOOSHEE_DIR content
  • I reindexed my app:
    from flask.ext.whooshee import Whooshee
    w = Whooshee(app)
    w.reindex()

The old documents don't show up in the search results when I search by the new field.

@bkabrda
Copy link
Collaborator

bkabrda commented Jun 7, 2016

Thanks for the report, I'll look into this.

@bkabrda
Copy link
Collaborator

bkabrda commented Jun 7, 2016

Several questions:

  • Is this an open source app that I could see and debug myself? Alternatively do you have a reproducer?
  • Do the old documents show up if you search by old fields?
  • Do newly inserted documents show up if you search by new field?
  • Have you updated both update_<model> and insert_<model> methods to store the new field?
  • On what combination of versions of flask-whooshee, flask-sqlalchemy, sqlalchemy and whoosh does this happen?

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

2 participants