Commit 9fadf9b 1 parent f98dff1 commit 9fadf9b Copy full SHA for 9fadf9b
File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 167
167
"extras" : ["route" ],
168
168
},
169
169
}
170
+
171
+ frappe_search_doctypes = {
172
+ "Wiki Page" : {
173
+ "title" : "title" ,
174
+ "content" : ["content" ],
175
+ "fields" : ["route" ],
176
+ },
177
+ }
Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ window.RenderWiki = class RenderWiki extends Wiki {
599
599
600
600
frappe
601
601
. call ( {
602
- method : "frappe_search.core .search" ,
602
+ method : "frappe_search.api .search" ,
603
603
args : {
604
604
query : searchInput . val ( ) ,
605
605
path : window . location . pathname ,
@@ -612,10 +612,9 @@ window.RenderWiki = class RenderWiki extends Wiki {
612
612
if ( results . length === 0 ) {
613
613
dropdown_html = `<div style="margin: 1.5rem 9rem;">No results found</div>` ;
614
614
} else {
615
- console . log ( results ) ;
616
615
dropdown_html = results
617
616
. map ( ( r ) => {
618
- return `<a class="dropdown-item" href="/${ r . extras . route } ">
617
+ return `<a class="dropdown-item" href="/${ r . fields . route } ">
619
618
<h6>${ r . highlighted_title || r . title } </h6>
620
619
<div>${
621
620
res . message . search_engine === "frappe_web_search"
You can’t perform that action at this time.
0 commit comments