@jron1001 Azure Cognitive Search uses a scoring algorithm called BM25 to rank search results. BM25 is a frequency-based scoring algorithm that takes into account the frequency of query terms in the document and the inverse document frequency of the query terms across the entire index.
In general, longer documents tend to score higher because they have more opportunities to match query terms. However, you can adjust the scoring algorithm to better suit your needs.
One way to do this is to use scoring profiles. Scoring profiles allow you to adjust the relevance score of search results based on specific criteria. For example, you could create a scoring profile that boosts the relevance score of documents that match on the product type keywords more than documents that match on the attribute keywords.
Another way to adjust the scoring algorithm is to use term boosting. Term boosting allows you to assign a higher weight to specific query terms. For example, you could assign a higher weight to the product type keywords than to the attribute keywords.
Keep in mind that adjusting the scoring algorithm can have unintended consequences, so it's important to test your changes thoroughly to ensure that they produce the desired results.