Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# JWT Token Get Expiry Timestamp
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- Serialization and deserialization of 'System.IntPtr' instances are not supported. Path: $.TargetSite.MethodHandle.Value
- C# get results from Task.WhenAll
- C# Authorization in .NET Core API's using Attributes, TypeFilterAttribute and IAuthorizationFilter
Archive
Meta
Tag Archives: SOLR
Sitecore SOLR Search in multiselect lists fails unless you add the field to the defaultSolrIndexConfiguration config
So I have this multiselect field in Sitecore: The field is a treelist field, but this article works for all multiselect fields, treelist, checklist, multilist, etc. So how do you return the field as a list of Sitecore ID’s from … Continue reading
Posted in .net, c#, Sitecore 10, Sitecore 7, Sitecore 8, Sitecore 9
Tagged index, search, Sitecore and .net, SOLR
Leave a comment
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 5, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9, Sitecore and .net
Tagged Computed Index Field, Sitecore and .net, SOLR
1 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 and .net, 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 and .net, SOLR
4 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 and .net, SOLR, _latestversion
3 Comments