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

Make more things searchable #46

Open
rossjones opened this issue Apr 22, 2014 · 1 comment
Open

Make more things searchable #46

rossjones opened this issue Apr 22, 2014 · 1 comment

Comments

@rossjones
Copy link
Contributor

I'd like to be able to search for related items, or groups (without hand-coded search) and my-random-object in my extensions.

Would be great if there was a simplified way for making things, from both in core and as part of my extension, easily searchable by Solr. I'd want to not have too much setup, and would want to be able to search for a specific thing (group, my-random-object) or across all things (find 'gold' in anywhere it is mentioned). Cores can be created programmatically although I think it still requires symlinking a schema file.

Obviously this would require an extension to define a schema.

@rufuspollock
Copy link
Member

The basic logic of this is very simple:

  • Search backends support certain key functions (index, search and possibly some other stuff like "more like this")
  • Objects (or the logic layer) would define hooks to be defined on objects that set how they are indexed (e.g. index this set of fields)
  • The logic or object layer automatically indexes objects as per point 2
  • Search is via a generic API (?) - this is the tough part - how do you abstract all your engines in part I (if you only have one engine it is much simpler!)

Worth looking at django haystack for how they do this (nothing similar for flask afacit)

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