New answers tagged

2

You can use solr.PatternTokenizerFactory tokenizer to achieve this Define a new fieldtype in solr schema <fieldType name="semicolonDelimited" class="solr.TextField"> <analyzer> <tokenizer class="solr.PatternTokenizerFactory" pattern=";" /> </analyzer> </fieldType> and then ...


1

If you were to do it with a ComputedIndex field. it would be like this. But maybe you can do it with just solr configs. using System.Collections.Generic; namespace Sitecore.Foundation.Indexing.Infrastructure.Fields { using Sitecore.ContentSearch; using Sitecore.ContentSearch.ComputedFields; using Sitecore.Foundation.SitecoreExtensions.Extensions;...


0

You can do it with SolrNet by passing QueryOptions as a parameter: using (var context = index.CreateSearchContext()) { var field = "courseactivities_s"; var value = "Dinghy"; var options = new QueryOptions { FilterQueries = new List<ISolrQuery> { new LocalParams {{"tag", ...


0

Take a look at the Doco here: https://doc.sitecore.com/developers/93/sitecore-experience-manager/en/linq-to-sitecore.html Sounds as though you want to specifically look at the Filter() and FacetOn() calls. You can confirm what the translated Solr Query will look like if you're having trouble by hopping into your Logs and reviewing the contents of the Search ...


1

You must have a typematch for type IEnumerable<ID> in your index configuration to make this work. So, create a patch file and include typematch from the below list //Sitecore 8.1 <typeMatch typeName="idIEnumerable" type="System.Collections.Generic.IEnumerable`1[[Sitecore.Data.ID, Sitecore.Kernel, Version=8.1.0.0, Culture=...


1

1.Make sure that you are using preserveOriginal="true" for solr.ASCIIFoldingFilterFactory filter <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter ...


0

If you want to limit the results of your search, you need to use the scope and not the boost as that will not limit (just boost). So you need to add the tag requirement to the scope where you now only have the template. You might be able to use the out-of-the-box SXA tokens in the search scope to match your needs. Check out the documentation here: https://...


1

I'm not sure if I exactly known what you are trying to achieve but here are some details which might be helpful. The BoostingService has two important methods: IQueryable<ContentPage> BoostQuery(IList<Item> boostingItems, string searchQuery, Item contextItem, IQueryable<ContentPage> queryable) IQueryable<ContentPage> BoostQuery(Field ...


Top 50 recent answers are included