Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

Nested Convetion not working for extension methods

$
0
0

Hi, I have an extension method that returns an list of object with properies that I want to be able to filter and sort on.

clientConventions.ForInstancesOf<WebProduct>().IncludeField(document => document.FindVariations());
clientConventions.NestedConventions.ForType<WebProduct>().Add(document => document.FindVariations());

But when I try to filter or sort on the extension method I get an error saying that the it isn't a nested object. And if I look in the index I can see that the property is missing the $$nested sufix.

"FindVariations": [
        {"$type": "Avensia.Storefront.Starter.Infrastructure.Find.Models.FindWebVariation, Avensia.Storefront.Starter",
}

Thi problem only seems to happen when its an extension method.

According to https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/nested-queries/ this should work and I can't find anything suggesting otherwise.


Category Facets in Find

$
0
0

Hello

I am wondering if someone have successeded doing a facets on subcategories?

Say I have this setup of the categories

  • Category A
    • Subcategory A
    • Subcategory B
    • Subcategory C
  • Category B
    • Subcategory D
    • Subcategory E
  • Category C
    • Subcategory F
    • Subcategory G

I want to get one facets of all the subcategories for Category A and one for Category B and so on.

Is this possible?

Unified Search Index Projection Not Working at all

$
0
0

Hi, I am trying to customize the index projection for unified search like below

SearchClient.Instance.Conventions.UnifiedSearchRegistry
              .ForInstanceOf().ProjectTitleFrom(s => s.Position);

But i have noticed after several days of debugging that below code in EPiServer.Find.Cms.CmsClientConventions

client.Conventions.ForInstancesOf().IncludeField((Expression<Func<IContent, ContentReference>>) (x => x.ContentLink)).IncludeField((Expression<Func<IContent, DateTime>>) (x => x.GetTimestamp())).IncludeField((Expression<Func<IContent, string>>) (x => x.SiteId())).IncludeField((Expression<Func<IContent, string>>) (x => x.ContentTypeName())).IncludeField<IEnumerable>((Expression<Func<IContent, IEnumerable>>) (x => x.Ancestors())).IncludeField<Dictionary<string, LanguagePublicationStatus>>((Expression<Func<IContent, Dictionary<string, LanguagePublicationStatus>>>) (x => x.PublishedInLanguage())).IncludeField((Expression<Func<IContent, string>>) (x => x.CommonName())).IncludeField((Expression<Func<IContent, string>>) (x => x.CommonType())).IncludeField((Expression<Func<IContent, string>>) (x => x.CommonTypeShortName())).IncludeField((Expression<Func<IContent, string>>) (x => x.CommonTypeDisplayName())).IncludeField((Expression<Func<IContent, string>>) (x => x.SearchTitle())).IncludeField((Expression<Func<IContent, string>>) (x => x.SearchText())).IncludeField((Expression<Func<IContent, string>>) (x => x.SearchSection())).IncludeField((Expression<Func<IContent, string>>) (x => x.SearchSubsection())).IncludeField((Expression<Func<IContent, bool>>) (x => x.HasTemplate())).IdIs((Func<IContent, DocumentId>) (x => (DocumentId) x.GetIndexId())).ExcludeField("__interceptors").ExcludeFieldMatching((Func<JsonProperty, bool>) (prop => typeof (XForm).IsAssignableFrom(prop.PropertyType))).ExcludeFieldMatching((Func<JsonProperty, bool>) (prop => typeof (PageType).IsAssignableFrom(prop.PropertyType))).ExcludeFieldMatching((Func<JsonProperty, bool>) (prop => typeof (Url).IsAssignableFrom(prop.PropertyType))).ExcludeFieldMatching((Func<JsonProperty, bool>) (prop => typeof (LinkItemCollection).IsAssignableFrom(prop.PropertyType)));

always takes the precedence. I think the only way to override the SearchTitle/SearchSection is to provide the extension method not throw the unified registry?

Any comments regarding this?

Commerce – How relates IContentRepository.Save(IContent content, SaveAction action, AccessLevel access) to Find indexing?

$
0
0

Hi there,

I am wondering if items saved via call IContentRepository.Save are automatically indexed on Find. This is question about Commerce.

For example I am saving product under some category parents with new name. What behavior should I expect from Find?

// Commerce
var freshNewName = "Fresh New Name";
var clone = brandProductContent.CreateWritableClone<CatalogContentBase>();
clone.Name = freshNewName;
clone.DisplayName = freshNewName;

I found that for CMS is working automatically under certain circumstainces (Indexing/Introduction): “Given that we have referenced the EPiServer.Find.Cms assembly in our EPiServer CMS project published content will be automatically indexed. Content are also reindexed, or deleted from the index, when they are saved, moved or deleted. Each language version …”.

Phonetic search?

Commerce – How relates IContentRepository.Save(IContent content, SaveAction action, AccessLevel access) to Find indexing?

$
0
0

Hi there,

I am wondering if items saved via call IContentRepository.Save are automatically indexed on Find. This is question about Commerce.

For example I am saving product under some category parents with new name. What behavior should I expect from Find?

// Commerce
var freshNewName = "Fresh New Name";
var clone = brandProductContent.CreateWritableClone<CatalogContentBase>();
clone.Name = freshNewName;
clone.DisplayName = freshNewName;

I found that for CMS is working automatically under certain circumstainces (Indexing/Introduction): “Given that we have referenced the EPiServer.Find.Cms assembly in our EPiServer CMS project published content will be automatically indexed. Content are also reindexed, or deleted from the index, when they are saved, moved or deleted. Each language version …”.

Summary property - where is it on a page?

$
0
0

In Find > Configure, what does the Summary property read on a page in Epi? Is it the Page description field on the SEO tab? 

In the Epi Find User Guide, it just describes the Summary property as "The introduction, summary, abstract, or similar property type." Is that the first paragraph of content on a page?

I'm using Epi as a content editor, not a developer, so the simpler the response, the better for me :)

Querying an external index

$
0
0

Hi,

I have two separate, but related, sites. One of the sites I would like to promote on the other. One of the ways I'm going to promote it is by showing search results from the smaller site on the primary site.

I have created a separete IClient instance with:

IClient mySecondClient = new Client(serviceUrl, indexName);

When trying to access the results with GetResult I get a 401 Unauthorized error.
What configuration options are needed in order to query an external index? I can't find anything in the documentation about this.

Edit: Quite embarrasing but the 401 error was because of an incorrect serviceUrl and indexName. I get no errors now, but no results either. I try to get the results with filterForPublicSearch set to false.

Thanks!

/Niklas


Indexing custom POCO

$
0
0

Hi,

I'm trying to index a custom POCO instead of variants for performance reasons. When following the guid at: https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-Commerce/9/Search/find-integration/indexing-poco-objects-instead-of-catalogcontentbase/ it says to disable indexing of CatalogContentBase and to override CatalogContentEventListener actions.

This is weird because if I disable the indexing of CatalogContentBase the action methods will never be hit and my custom POCOs won't be indexed either. 
So this looks like a catch-22. I can't disable indexing of variants and when not disabling it's indexing both variant and POCO?

Does anyone have experience with indexing POCO's?

PS.

I'm trying this because of the number of results that we're returning from a query (aprox 900 items) and the default implementation loads the Variant from the database (slow) even when using projections! 

/Mark

Unwanted synonyms in EPiServer Find

$
0
0

We have detected some words are registered as synonyms without us adding them manually. One example is "rus" (Norwegian for "intoxication") and "fyll" (Norwegian for binge drinking and "fill" as in "fill in the form").

Is this documented anywhere, and how do we get rid of it?

How to index content from custom media provider

$
0
0

Hi,

I've created a custom media provider, but the media files are not being indexed. Is there something I need to implement for this to work?

I'm using EpiFind version 12.4.3.0 and CMS version 10.10.4.0

Search for an exact phrase like "Castle Dover".

$
0
0

Hi,

Is is possible in Episerver Find to search for an exact phrase, the default implementation of Find searches for occurrences of "Castle" and "Dover" and add weighting to the search results. But I want to search for "Castle Dover"; the exact phrase with spaces.

Is this possible?

Thanks!

Marc

Episerver Find Search Statistics Click tracking search result issue

$
0
0

I am trying to implement click tracking using EPiServer Find for a CMS application. I am able to generate the statistics but the page name in the search results is showing up as page not found.

Below is a screen shot for reference: https://www.screencast.com/t/ywkYtn9L

Any info on this will be of great help to me.

Issues with new developer indexes

$
0
0

Are there issues with newly created developer indexes? I receive "(401) Unauthorized" errors when indexing and also received nested "IOException[No space left on device]" while indexing last Friday. I have an old index that works just fine on the very same project. I'm confident I have the correct configuration using the correct private url.

Building Term Facet For JSON object

$
0
0

Hi All ,

Hope you are all doing well . 

I have been facing an issue to build a Term facet . 

My JSON object in FIND index will be like below

"FilterAttributes": {"thredcount": "100","colour": "blue","Size": "small"
    }

I am using the below code to build the Term Facet

 .TermsFacetFor(x=>x.FilterAttributes.Root.Values(),x=>x["colour"].ToString(),x=>x.Name="colour")

unfortunately its not working as I expected .  Term Facet count always zero.

Expected result : 

blue (1)

Request you all to let m eknow what worng woth my code.

CMS Version 11

Commerce Version 11

Find version 13

Regards

Venkata Phani kumar R


EpiFind click tracking and a CDN

$
0
0

Hey,

We cache our search results so if you go to https://www.greenmangaming.com/search/far cry.  We do the following:

  1. Query Epifind
  2. Display the results
  3. Cache HTML on CDN

On the second hit. We do:

  1. Get the HTML from cache
  2. Profit

This allows us to provide quick search results.  At the moment we are not handling click tracking and want to add support.  If we reuse the track ID for both the first and second hit will that cause issues?  Because after all the html is cached.   Another option would be, we call Episerver from javascript and get  a new track id but I can't see that is an option.

Has anyone else had this problem? or is it not a problem and we can safely reuse the same track ID?

Commerce Items being indexed in the find index when unpublished.

$
0
0

Currently, we have Episerver find working with Episerver commerce, and we have noticed that any unpublished items in the catalogue are also being indexed. Is this expected?

I have found a solution to get around the problem but was wondering if it is expected for this to happen or we have to configure something to stop this.

When searching with the returns items which don't have URLs as they are not published, which is an issue.

Thanks in advance!

Serious problems with developer index

$
0
0

I created new developer index and everything looked OK. When I ran the index job it was also successful and I started developing my search page (unified search). However, the only results I'm getting is content inheriting from MediaData. When I look in the Find Overview I see there are 0 page types indexed. They are instead indexed as normal .NET objects?

We've had issues with dev indexes for months now and it's been crippling our Find related development. Some sites are heavily relying on Find so it's starting to become a huge issue. What can we do until it's fixed?

Episerver Find: Get PageData from UnifiedSearchResult

$
0
0

Hi there,

Not sure if I'm missing something simple here, does anyone know an efficient way of getting the PageData or IContent reference from a Unified Search result in Episerver Find?

I know one way it could be done is doing a content repository lookup from the URL, but I would've thought the UnifiedSearchResult object would include a content reference buried  somewhere in the results?

Cheers

"Weights" undefined when using UnifiedSearch

$
0
0

Hi!

I've indexed a whole bunch of page types so that I can search among them using EPiServer Find UnifiedSearch.

However, when I log in and access the EPiServer Find administration sections the list with "weights" contains undefined entries.

You can see this by following this link:

Capture of "weights" in EPiServer Find admin

Has anyone experienced this before, and if so, what could be wrong?

I'm using EPiServer CMS 10.10.4.0 and EPiServer Find CMS 12.6.2.

//Marcus

Viewing all 6894 articles
Browse latest View live