Commit graph

17 commits

Author SHA1 Message Date
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
barredterra
88c8baa9ee refactor: for append to extend, merge list extend
Replace a for append loop with list extend.
Create the list with values instead of creating
an empty list and extending it with another list.
2023-08-09 13:25:39 +02:00
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
ChillarAnand
3f21b6707a fix: Use whoosh AsyncWriter to prevent write locks 2022-02-06 08:40:23 +05:30
Ankush Menat
99a6874aff feat: apply boosts on search queries
This gives higher priority to title and match over content.
2021-10-25 09:14:53 +05:30
Ankush Menat
4ef4ecdf01 fix: dont hardcode search fields
FullTextSearch uses name and content
WebsiteSearch uses title and content

Tests were failing because of hardcoded fieldnames which can't be
overridden by inheriting class without rewriting search function.

Made a separate function for defining search fields.
2021-10-25 09:14:48 +05:30
Ankush Menat
cbe673255b fix(ux): allow fuzzy search in website search
FuzzyTerm allows edit distance based fuzzy searching. This means "webho" or
"wabhool" will match "webhook".
2021-10-24 14:46:02 +05:30
ChillarAnand
a298566d13 fix: Use whoosh AsyncWriter to prevent write locks 2021-09-15 16:42:11 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
1752e5b0e5 feat(cli): Show progress bar for website search index building 2021-05-07 12:14:00 +05:30
Shivam Mishra
8772606103 fix: document None is not subscriptable 2020-08-26 11:38:29 +05:30
Shivam Mishra
8d71dad60b feat: delete doc only if valid name is provided 2020-08-10 14:24:00 +05:30
Shivam Mishra
38909db955 feat: create index if not exists 2020-08-06 19:47:46 +05:30
Shivam Mishra
eab9a27b61 feat: separate create_index function 2020-08-06 19:47:46 +05:30
Shivam Mishra
a18b81e39d chore: linting fixes 2020-08-06 19:47:46 +05:30
Shivam Mishra
9e3d3de432 feat: add site indexing command 2020-08-06 19:47:46 +05:30
Shivam Mishra
602366e285 feat: separate FTS and website search inside frappe.search 2020-08-06 19:47:46 +05:30