Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- C# Get expiry timestamp from JWT token
- Using C# HttpClient from Sync and Async code
- Run tasks in parallel using .NET Core, C# and async coding
- Handling "415 Unsupported Media Type" in .NET Core API
- ASP.Net Core API - "'s' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."
Archive
Meta
Tag Archives: SOLR
Write to SOLR from .NET Core
.NET Core supports the SOLR index through the SolrNet.Core NuGet packages. Here is how you update the index. STEP 1: THE NUGET PACKAGES You need the following NuGet packages: SolrNet.Core SolrNet.Microsoft.DependencyInjection STEP 2: CREATE A MODEL CLASS CONTAINING THE PROPERTIES … Continue reading
Sitecore ComputedIndexField extends your SOLR index
The Sitecore SOLR index is your quick access to Sitecore content. And you can extend this access by adding computed index fields. This is a way of enriching your searches with content that is not part of your Sitecore templates, … Continue reading
Posted in General .NET, Sitecore, Sitecore 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged Computed Index Field, Sitecore, SOLR
Leave a comment
Azure Cognitive Search from .NET Core and C#
The Azure Cognitive Search engine is the search of choice in the Microsoft Azure. The search engine can be used in a myriad of ways and there are so many options that it can be difficult to find a starting … Continue reading
Posted in .NET Core, c#, General .NET, Microsoft Azure
Tagged Azure, Azure Cognitive Search, Azure Search, SOLR
Leave a comment
Solr delete document using UI and querystring
How do you delete a document from Solr? You can use query string parameters to do the delete: https://%5Bserver%5D:8983/solr/%5Bcore%5D/update?commit=true&stream.body=<delete><query>%5Bquery%5D</query></delete> server: The name of your Solr server core: The name of the Solr core (the Solr index) to delete from query: … Continue reading
Sitecore install local SSL certificate for shared xConnect SOLR server
In Sitecore 9, the SOLR connection is secure by default. The effect is that if your development environment includes a shared SOLR server, your local IIS requires a SSL certificate issued for that server, even when your local site does … Continue reading
Sitecore Paging SOLR Responses
When querying Sitecore items from the SOLR index, you do not need to get all items in one go. In fact, the default SOLR implementation will stop at 5000 returned items, so for large queries, you need to use the … Continue reading
Sitecore SOLR error: Invalid Date in Date Math String
There seems to be an issue with certain combinations of Sitecore, SOLR and the local machine datetime settings. This is the error: ManagedPoolThread #11 12:20:50 INFO Job started: Index_Update_IndexName=sitecore_master_index ManagedPoolThread #11 12:20:50 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been … Continue reading
Posted in Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9
Tagged CultureInfo, Sitecore, SOLR
2 Comments
Sitecore ContentSearch – Get items from SOLR or Lucene – A base class implementation
Reading items from Sitecore is pretty straight forward: And it is fast, unless you need to retrieve items from many paths, or need to retrieve every child of a certain base class. In these situations you resolve to using the … Continue reading
Posted in .net, c#, General .NET, Sitecore 7, Sitecore 8
Tagged ContentSearch, ContentSearchManager, index, Lucene, search, Sitecore, SOLR
3 Comments
Sitecore ContentSearch Get Latest Version
The Sitecore ContentSearch API allows you to index content in either .NET Lucene or SOLR, dramatically speeding up retrieval of content, especially when querying items that are scattered across your content tree. Content retrieved from the ContentSearch API is not … Continue reading
Posted in .net, c#, General .NET, Sitecore 7, Sitecore 8
Tagged ContentSearch, index, Lucene, Sitecore, SOLR, _latestversion
3 Comments