- Print
- PDF
Test search and search settings
- Print
- PDF
Available in Classic and VPC
Search test and search settings explains how to set up and test the search engines for the domain you create. You can set up and test the search engine's ranking module, autocomplete, stop words, and thesaurus.
Search test
You can test the search by changing search conditions and sorting methods in the console. The following describes how to perform a search test.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Search test] tab.
- Select a testing method and then perform the test according to the selected test method.
- Test with search keywords: search by entering search keywords
- Test with direct input: search by entering a search query
- Ranking formula: search while changing ranking modules or the ranking formulas of modules
- Search request details are maintained even if you change the test method during testing.
- Click the [Load history] button to check past search history and retrieve the search request details.
- You can only check the search history in the browser used during the search.
Test with search keywords
The following describes how to test the search by entering search keywords on the Search test tab screen.
- Click Test by search keywords.
- Click Search condition to set search conditions and then click the [OK] button.
- Index name: select the index to use for the search
- Highlight tags: select whether to highlight search keywords in search results
- Stop words: select which stop-word rules to apply
- none: does not apply stop word rules
- To apply stop word rules, you must first create stop world rules. (see Create stop word rules)
- Sort condition: select the section variable to use as the sort criteria for search results
- You can set the sort criteria to ascending (asc), descending (desc), or deselect it.
- If you do not select sort criteria, search results are sorted by document weight (qds) in descending order.
- Enter the search keywords and then click the [OK] button.
- Check the search results.
- [Initialization] button: initialize search conditions and results
- : check search results in JSON format
- View ranking weight: check the ranking and qds of the retrieved document
Test with direct input
The following describes how to test the search by entering search queries on the Search test tab screen.
- Click Test with direct input.
- Enter the search query and then click the [OK] button.
- [Note]: check the search query user guide
- [Initialization] button: initialize search queries and search results
- : check search results in JSON format
- View ranking weight: check the ranking and qds of the retrieved document
For information on how to write search queries, see Search queries.
Ranking formula
The following describes how to test the search by editing ranking modules and ranking formulas on the Search test tab screen.
This explanation focuses on how to manage search tests and ranking modules. For more information on ranking formulas, see Ranking formula.
- Click Ranking formula.
- Select the ranking module to apply to the search from the Ranking name dropdown menu.
- Check the ranking formula of the selected ranking module and edit it if necessary.
- [Add] button: enter the ranking variables and expressions and click to add ranking formulas
- /: edit or delete ranking formulas
- [Save] button: save the edited content to the ranking module
- [Save as new name] button: create a new ranking module with the edited content
- [Set as default ranking] button: set the selected module as the default ranking
- When set as the default ranking, you can specify the ranking variables defined in the ranking modules as parameters for the sort option in searches without the need for the ranking option. (for more information, see Search queries )
- [Delete ranking] button: delete the selected ranking module
- You cannot delete default rankings.
- Enter the search query and then click the [OK] button.
- Search results with the ranking formula applied are displayed.
- [Initialization] button: initialize search queries, ranking formulas, and search results
- : check search results in JSON format
- View ranking weight: check the ranking and qds of the retrieved document
Autocomplete
The following describes how to initially set up and change the search keywords autocomplete function and perform a search test.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Autocomplete] tab.
- Click the [Set autocomplete target] button.
- Select the sections or indexes to set the autocomplete function in the Autocomplete target popup and then click the [Set] button.
- Depending on the number of saved documents, it may take 2 to 3 hours to be applied to the autocomplete indexing.
- Select the autocomplete targets and then enter search keywords in the search box to test the autocomplete feature.
If changes occur to sections or indexes due to document uploading or index editing, update the autocomplete index. (see Update autocomplete index)
Stop words
You can create stop word rules to set words and rules to be excluded from searches.
To apply stop word rules for searches, set "stopword": "불용어 규칙 이름"
in the search
field of the search query. For more information, see search.
Create stop word rules
The following describes how to create stop word rules.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Stop words] tab.
- Click the [Add] button.
- When the Rule information popup window appears, enter the rule information and click the [OK] button.
- Rule name: must begin with a letter or an underscore (_). You can only enter letters, numbers, underscores (_), and hyphens (-)
- Rule type: set how to apply rules
- Partial match: when search keywords contain a stop word, excludes them from the search
- Exact match: when search keywords match stop words exactly, excludes them from the search
- Case sensitive: set whether to be case-sensitive
- Word list: enter stop words separated by commas (,)
Edit stop word rules
The following describes how to edit stop word rules.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Stop words] tab.
- Select the stop word rule you want to edit and click the [Edit] button.
- Edit the rule information and then click [OK].
- For more information about each information item, see Create stop rules.
Delete stop word rules
The following describes how to delete stop word rules.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Stop words] tab.
- Select the stop word rule you want to delete and click the [Delete] button.
- When the Delete rule popup window appears, click the [OK] button.
- The selected rule disappears from the list of stop word rules.
Thesaurus
You can create and apply a thesaurus so synonyms of the search keywords can also appear in the search results.
To use a thesaurus, execute the following steps in order.
- Create thesaurus (see Create thesaurus)
- Apply the thesaurus as an analysis option during index creation (see Change index)
- Set
"syno": "true"
in thesearch
field of the search query for the search (see search)
Create thesaurus
The following describes how to create a thesaurus.
- You can only create one thesaurus per domain.
- You cannot directly edit or delete a thesaurus. Edit it by adding a new version.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Thesaurus] tab.
- Click the [Set] button.
- When the thesaurus information popup window appears, enter the thesaurus information and click the [OK] button.
- Dictionary name: only letters, numbers, and underbars (_) can be entered
- Description: enter a description of the thesaurus and its version
- Word list: enter synonyms
- Enter the synonyms separated by commas (,) or spaces
- Enter words separated by line breaks
- Thesaurus version: enter the thesaurus version
Add thesaurus version
The following describes how to add a version of the created thesaurus.
- You cannot directly edit or delete a thesaurus. Edit it by adding a new version.
- If you add a version, you cannot view the previous word lists.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Thesaurus] tab.
- Click the [Add version] button.
- When the Dictionary information popup window appears, edit the description and word list.
- Enter the Dictionary version.
- Enter a higher number than the previous version.
- Click the [OK] button.
- The thesaurus is updated to the new version.
- Version information is updated and you can check the descriptions entered for each version.
Delete thesaurus version
You cannot delete thesauruses. You can only delete information of the previous versions. The following describes how to delete information of the previous version.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Big Data & Analytics > Cloud Search menus, in that order.
- Click the Domain menu.
- Select the domain to test and then click the [Search settings] button.
- Click the [Thesaurus] tab.
- Click of the previous version from Version information.
- The version disappears from the version information.