Set Search Ranking by Object Type¶
Alation Cloud Service Applies to Alation Cloud Service instances of Alation
Customer Managed Applies to customer-managed instances of Alation
From Alation release 2022.4, you can set search rankings by object type using alation_conf. For most object types in Search, there is a corresponding alation_conf setting that sets its boost factor.
By default, Data Sources, Terms, Articles, and Tags are boosted the most. If you’d like a different mix of results in your search results, adjusting the boost factor for one or more object types can help.
Note
Alation Cloud Service customers can request server configuration changes through Alation Support.
Adjust the Boost Factor¶
To adjust the boost factor, use the alation_conf command with the appropriate setting and specify the desired new value. For example, to raise the boost factor for Domains to 3, you would use alation_conf as follows:
Use SSH to connect to the Alation server.
Enter the Alation shell using the following command:
sudo /etc/init.d/alation shell
Run the following alation_conf command:
alation_conf alation.search.otype_boost_factor_domain -s 3
Note
While some of the pre-set boost factors are decimal values, only integer values are accepted by alation_conf.
Re-index the Object Type¶
After adjusting the boost factor, you need to re-index the object type. You do this by running the Python command manage.py update_index
from the Alation Django directory. For example, to re-index the Domain object type after raising its boost factor as above, you would do the following:
Change the user to
alation
.sudo su alation
Go to /opt/alation/django.
cd /opt/alation/django
Run the following command to re-index domains:
python manage.py update_index --using default domains.domain
More generally, you will run the command python manage.py update_index --using default
with one of the predicates listed in Boost Factors and Predicates, which also lists the boost factor names and default values.
Note
You can also obtain the necessary re-indexing command by calling alation_conf with the -v flag, as follows:
alation_conf alation.search.otype_boost_factor_domain -v
This produces the following output, which includes the re-indexing command on the comment
line:
alation.search.otype_boost_factor_domain = 3 type: <class 'int'> default: 1 comment : Search boost factor for Domains. After modifying this value, reindexing these objects with the following update_index command is required for this change to be reflected in Search: python manage.py update_index --using default domains.domain whitelist : True
Boost Factors and Predicates¶
Object Type |
alation_conf Boost Setting |
Default Value |
Re-index Predicate |
---|---|---|---|
Data Source |
|
5 |
|
Schema |
|
2 |
|
Table |
|
3 |
|
Column |
|
1 |
|
Value |
|
0.25 |
|
Glossary |
|
1 |
|
Term |
|
5 |
|
Article Group |
|
1 |
|
Article |
|
5 |
|
BI Server |
|
1 |
|
BI View |
|
1 |
|
BI Folder |
|
1 |
|
Statement Template |
|
0.25 |
|
Domain |
|
1 |
|
File System |
|
1 |
|
File |
|
1 |
|
File Attribute |
|
1 |
|
User Profile |
|
3 |
|
Policy |
|
1 |
|
Data Policy |
|
1 |
|
Policy Group |
|
1 |
|
User Group |
|
1 |
|
Tag |
|
4 |
|
Catalog Set |
|
1 |
|
Dataflow |
|
1 |
|
Boost is not configurable for the following object types:
BI Report
BI Field
Execution Result
Query
Function
Conversation