[ 
https://issues.apache.org/jira/browse/YUNIKORN-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382310#comment-17382310
 ] 

Weiwei Yang commented on YUNIKORN-750:
--------------------------------------

hi [~Yukali]

Please see the response from algolia: 

{quote}

Congratulations, your search is now ready!
I’ve successfully configured the underlying crawler and it will now run every 
24h.You’re now a few steps away from having it working on your website:- Copy 
the following CSS/JS snippets and add them to your page<!-- at the end of the 
HEAD -->
<link rel=“stylesheet” 
href=“[https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css]” 
/><!-- at the end of the BODY -->
<script type=“text/javascript” 
src=“[https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js]”></script>
<script type=“text/javascript”> docsearch({
apiKey: ‘65b6e69046d08b5364868a53ff974c2f’,
indexName: ‘yunikorn’,
inputSelector: ‘### REPLACE ME ####’,
algoliaOptions: \{ ‘facetFilters’: [“type:$TYPE”, “version:$VERSION”] },
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>- Add a search input in your page if you don’t have any yet. Then 
update the inputSelector value in JS snippet
to a CSS selector that targets your search input field.- Replace $TYPE with the 
type you want to search on.
The list of possible type is hardcoded in the config.
So as of today you have: content, lvl1, lvl2, lvl3, lvl4, lvl5- Replace 
$VERSION with the version you want to search on.
The list of possible version is hardcoded in the config.
So as of today you have: 0.10.0, 0.8.0, 0.9.0, current, latestFor example if 
you want to refine the search to the type “content” and the version “0.10.0” 
just specify: ‘facetFilters’: [“type:content”, “version:0.10.0”]- Optionally 
customize the look and feel by following the DocSearch documentation
(See [https://docsearch.algolia.com/docs/styling/])
- You can also check your configuration in our GitHub repository
(See 
[https://github.com/algolia/docsearch-configs/blob/master/configs/yunikorn.json]).
- [[email protected]|mailto:[email protected]] can get 
access to the full Algolia analytics for your DocSearch index by creating an 
account, following this link: 
[https://www.algolia.com/users/invitation/accept?invitation_token=zZBZz5se7MPNYbbqEkzE]Please
 open a pull request if want to leverage your configuration!Feel free to get 
back to us if you have any issues or questions regarding the integration.We’d 
also be happy to get your feedback and thoughts about DocSearch - so we can 
continue to improve it.

{quote}

could you pls help to fix this issue? Thanks!

> Website search box returns no result
> ------------------------------------
>
>                 Key: YUNIKORN-750
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-750
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: website
>            Reporter: Weiwei Yang
>            Assignee: Chen Yu Teng
>            Priority: Major
>             Fix For: 1.0.0
>
>
> The search box returns no result, I wonder this might be related how 
> docsearch was configured. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to