2023-02-15 09:55:01 +02:00
|
|
|
Generated from search.py on 2023-02-14 15:33:37.135106
|
2021-10-15 03:25:38 -05:00
|
|
|
|
|
|
|
|
# peeringdb_server.search
|
|
|
|
|
|
|
|
|
|
Search implementation used for the peeringdb top search bar, name
|
|
|
|
|
searches through the api `name_search` filter, as well as advanced
|
|
|
|
|
search functionality.
|
|
|
|
|
|
|
|
|
|
Search logic is handled by django-haystack and whoosh.
|
|
|
|
|
|
|
|
|
|
Refer to search_indexes.py for search index definition.
|
|
|
|
|
|
|
|
|
|
# Functions
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## search
|
|
|
|
|
`def search(term, autocomplete=False)`
|
|
|
|
|
|
|
|
|
|
Search searchable objects (ixp, network, facility ...) by term.
|
|
|
|
|
|
|
|
|
|
Returns result dict.
|
|
|
|
|
|
2022-11-08 19:25:32 +02:00
|
|
|
---
|