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 diagram of search result sources #348

Open
mushon opened this issue Jan 25, 2016 · 2 comments
Open

Make diagram of search result sources #348

mushon opened this issue Jan 25, 2016 · 2 comments
Assignees

Comments

@mushon
Copy link
Contributor

mushon commented Jan 25, 2016

for @Bnaya

@mushon
Copy link
Contributor Author

mushon commented Feb 8, 2016

@akariv please do this so @Bnaya can move FWD… (thanks)

@akariv
Copy link
Member

akariv commented Feb 15, 2016

All search is done via the full text API

For example, generic search for ״טרכטנברג״:
http://www.obudget.org/api/search/full_text?q=%D7%98%D7%A8%D7%9B%D7%98%D7%A0%D7%91%D7%A8%D7%92

You can limit by record kind, e.g. budget lines and exemption records:
http://www.obudget.org/api/search/full_text?q=%D7%98%D7%A8%D7%9B%D7%98%D7%A0%D7%91%D7%A8%D7%92&types=MRExemptionRecord,BudgetLine

And also add fields for filtering, e.g .as above but filtering year==2012:
http://www.obudget.org/api/search/full_text?q=%D7%98%D7%A8%D7%9B%D7%98%D7%A0%D7%91%D7%A8%D7%92&types=MRExemptionRecord,BudgetLine&year=2012

Note that filter fields only work in case the field is part of the record. In the above case, year is part of a BudgetLine so the filter will be applied to it, while the exemption record will remain unaffected.

The definition of what is indexed (which kinds and which fields per kind) is dynamic and can be changed relatively easily.

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