If you are using Sitecore 8.2.1 with Azure search, have a quick look



Hello ,

I was working on Azure search feature integration in Sitecore 8.2.1. If you see, its looks more similar to Lucene but in Azure. Yes, it needs to decommission of default Lucene configurations in (/App_config/Include) with AzureContentSearch using below approach.


Accessing Search context and indexes from Sitecore in normal approach, i.e replaced Lucene with the Azure search but you still can use azure search via rest API which results in unnecessary fields and bulk data.

Creation of Custom indexes and pull search results using same old approach.


When I queried complete site for SearchResultitem, I have got default result count as 50 though Totalresultscount is > 50. 

Default content search from Sitecore content tree: 


From below reference, azure search default Search Documents returns at most 50 results, yes with this Sitecore also provides maximum 50 when indexed documents stored in Azure search 
with the correct total search result.

context.GetQueryable<SearchResultItem>().Where(...).GetResults(); 

I've contacted Sitecore and registered it as a bug. To track the future status of the bug report, the reference number 147550 would be having more information about public reference numbers can be found here:
https://kb.sitecore.net/articles/853187

To workaround the issue, you use a paging parameter which will result complete search results:
var res = context.GetQueryable<SearchResultItem>().Where(...).Take(Int32.MaxValue).GetResults();

I've have used simple queries using computed and indexed fields as of now. I will be sharing more details about fix and, Stay tune :)


Last but not least, Indexing content of PDF and MS Office formats DOC, PPT, Excel into AzureSearch with below approach


This makes one step closer to our end goal of having enterprise search. Please let me know if any further queries you may have in comments




Happy Coding!

Cheers,

Comments

  1. I have read your blog its very attractive and impressive. I like it your blog.

    Azure Online Training Hyderabad

    ReplyDelete
  2. Excellent blog admin, this is what I have looked for. Azure Online Training Bangalore

    ReplyDelete
  3. Hi Siva,

    I am getting same issue. Can you please share more details

    Thanks,
    Param

    ReplyDelete

Post a Comment