wiki icon indicating copy to clipboard operation
wiki copied to clipboard

"No results found" Search not working - branch version-13

Open ghost opened this issue 4 years ago • 1 comments

Frappe Framework: v13.15.0 (version-13)

Wiki: v0.0.1 (version-13)

ghost avatar Dec 03 '21 23:12 ghost

@karrykreates Until this is fixed the workaround is this The search takes the scope as the name of the top level sidebar Go to wiki sidebar list and set the root sidebar's name name to the base path of your wiki pages in which you want to search

hasnain2808 avatar Dec 15 '21 06:12 hasnain2808

@hasnain2808 @BreadGenie How do we set a path?

PatelN123 avatar Mar 20 '23 18:03 PatelN123

@PatelN123 in the wiki settings the Wiki Sidebar field will autocomplete for a list of Wiki Sidebars. Pick or type the one that's the root wiki sidebar. By default the root sidebar is "wiki".

BreadGenie avatar Mar 21 '23 15:03 BreadGenie

@BreadGenie Yes, this changes the sidebar correct? I mean how exactly can I get the search working?

PatelN123 avatar Mar 21 '23 19:03 PatelN123

No, it doesn't change the sidebars. The searchbar is looking for a scope for search to work. And the workaround here is adding the root sidebar for the search's scope.

BreadGenie avatar Mar 21 '23 19:03 BreadGenie

@BreadGenie Okay, so I have tried to set the sidebar to wiki and some others that I have made. Each of them still result in the search not working. Please advise what the next fix is.

root sidebar's name name to the base path of your wiki pages

I see this but I can see no documentation on how to set the base path. I assume the base path means something like setting this? (/docs/) image

Please advise.

PatelN123 avatar Mar 21 '23 19:03 PatelN123

Yes, briefly you'll have to do 3 things to get this working

  • add the base path to every wiki page to get them indexed. So all wiki pages will be prepended by a base path like /docs/
  • root sidebar should be renamed as to the base path (here it should be renamed from default value of "wiki" to "docs")
  • Set the base path to Wiki Sidebar field in Wiki Settings

BreadGenie avatar Mar 21 '23 19:03 BreadGenie

Thank you for clarifying @BreadGenie. How can us users have it auto set the base path like /docs/? - I am sure others will agree when I say it is a pain to go to each docs page and change it when we make a new page.

PatelN123 avatar Mar 21 '23 19:03 PatelN123

I agree. Currently we don't have a way out of the box at the moment, but it will be coming very soon to wiki.

BreadGenie avatar Mar 21 '23 19:03 BreadGenie

resolved in #124. You can set the search scope at Wiki Settings.

BreadGenie avatar Apr 05 '23 07:04 BreadGenie

I have same problem and still not solved any help please

yasser1248 avatar Jun 12 '23 07:06 yasser1248