Search Ranking of Results on Relational Data

时间:2015-10-30 21:53:47

标签: azure-search

I am creating a question & answer system and I want to perform searches using Azure Search from a single text box. Originally I was thinking of placing the answers and questions in different indices, so that each index only described one concept of data. However, with this model I have no clue how to perform a search with ranking based on both question data and answer data.

Is the only way to do this by storing all the items in the same index? I know Lucene and Elastic Search have the concept of Join Queries and Parent-Child mapping's for this purpose.

1 个答案:

答案 0 :(得分:1)

If I understood your question correctly, you are implementing a full-text search experience using Azure Search, and your question is NOT about relational database schema design. If that's the case, denormalizing your questions and answers into a single index is probably the right thing to do - your users will be able to find relevant content, whether related to questions or to answers. You can still set up separate scoring profiles for situations where you need to boost either question- or answer-related fields in your index schema.