Amit Singh Rawat
Amit Singh Rawat

Reputation: 589

how to increase azure searching performance

I am new to Azure services. In my project there is a function to search text words or multiple text words. For example, if I search "best phase", the search should return data that are related "best" and "phase" in my data.

Sample example code below. Note: searchParameters is used to sort and order my data by their date

string searchText = "best phase";
string[] temp = searchText.Contains(" ") ? searchText.Split(' ') : new string[] { searchText};

var documentSearch = _indexClient.Documents.Search("\"" + searchText + "\"^2, \"|" + searchText + "|\", +" + searchText + ", +" + string.Join(", +", temp)  , searchParameters);

The current implementation consumes too much time at around 15-20 sec or more. So I need to do searches faster. Any idea how to make it faster :-)

Upvotes: 2

Views: 304

Answers (1)

Alberto Morillo
Alberto Morillo

Reputation: 15668

You can use Azure Search as explained here.

You can also use Full-Text Search of SQL Azure as explained here.

To decide which one to use, please read the difference between them on this article.

Hope this helps.

Upvotes: 3

Related Questions