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

TotalMatching shows 0

$
0
0

Hi!

I am new to Find, and I have recently taken over a solution based on Find. We are experiencing a problem with a counter, that works on and off.

 IContentResult<T> result = _findClient.Search<T>(Language.Norwegian)
                .ApplyQueriedSearch(query)
                .FilterByAncestor(rootContentLink)
                .FilterByCategories(categories, categoryMatchOperator)
                .FilterForVisitor()
                .Take(1)
                .StaticallyCacheFor(TimeSpan.FromMinutes(5))
                .GetContentResult();
            return result.TotalMatching;

The property "TotalMatching" shows either correct number, or 0, on and off. The indexing job goes every 2nd hour.

Does anyone have a clue what might be wrong?


Know when the Find index job time out

$
0
0

Is there a way to know if the index timeout has been exceeded in the EPiServer.Scheduler.ScheduledJobBase.Execute() ? 

will the EPiServer.Scheduler.ScheduledJobBase.Stop() will trigger if the index has time out?

Note: I am working on EPiServer.Find.Cms --> 12.7.1.0  ,   CMS ---> 11.5.1.0 

Using Geta Epi Categories for Unified Search (Find 12.7.1.0)

$
0
0

We are using the Geta Epi Categories in out solution https://github.com/Geta/EpiCategories. We are using version 1.2.1.

Is there a way to use the Geta Epi Categories in the unified search method. The CMS users will be assigning categories to content with the Geta Categories property type (IList<ContentReference>). The Unified Search Search Categories property is of the IEnumerable<string> type so was wondering if this is possible and a nudge in the right direction to do this

Thanks in advance!

Stemming with IncludeType

$
0
0

Is there anyway to use stemming on queries that require multiple types without inheritance? You can't specify a property/methods to search in which are required for stemmings and the raw response doesn't include projections to use.

I'm using Find 13.01.

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.

Exception: mapping for explicit nested path is not mapped as nested

$
0
0

Hi,

I’m having difficulties getting a nested value into my Find index.
I have a Commerce Variant with a property that exposes an IEnumerable<Price>:

        public IEnumerable<Price> AvailablePrices => this.Prices();

where this.Prices() is the default IPricingExtensions method. (I’ve also tried using Prices() directly but getting the same error)

In the conventions I have:
SearchClient.Instance.Conventions.NestedConventions.ForInstancesOf<DefaultVariation>().Add(x => x.AvailablePrices);

This gets indexed fine:

"AvailablePrices": [

        {

            "CustomerPricing": {

                "$type": "Mediachase.Commerce.Pricing.CustomerPricing, Mediachase.Commerce",

                "___types": [

                    "Mediachase.Commerce.Pricing.CustomerPricing",

                    "System.Object",

                    "System.IEquatable`1[[Mediachase.Commerce.Pricing.CustomerPricing, Mediachase.Commerce, Version=10.8.0.0, Culture=neutral, PublicKeyToken=6e58b501b34abce3]]"

               ]

            },

            "___types": [

                "EPiServer.Commerce.SpecializedProperties.Price",

                "System.Object",

                "System.ICloneable"

            ],

            "ValidFrom$$date": "2013-12-05T23:00:00Z",

            "$type": "EPiServer.Commerce.SpecializedProperties.Price, EPiServer.Business.Commerce",

            "UnitPrice": {

                "Amount$$number": 210,

Still, when querying I get:

nested: ElasticSearchIllegalArgumentException[mapping for explicit nested path is not mapped as nested: [AvailablePrices]];

 this is called in:

query = query.OrderBy(v => v.AvailablePrices, p => p.UnitPrice.Amount, price =>
     price.ValidFrom.LessThan(DateTime.Now)
     & (price.ValidUntil.Exists() | price.ValidUntil.GreaterThan(DateTime.Now))
     & (price.MarketId.Value.Match("BBNL")));

Episerver Find version: 12.5

Hope anyone can help! 

/Mark

Site does not run when Refreshing personalization

$
0
0

Hi,

I am currently follwing post: https://world.episerver.com/documentation/developer-guides/find/personalized-find/

I have added in the appropriate app settings for episerver:personalization.Site and episerver:personalization.ClientToken and have added

UsingPersonalization() extension method to the search query. Up this point the site runs fine.

However when I add the Controller Attribute:

[EPiServer.Find.Personalization.RefreshPreferences]

or use the below code to refresh the personalization:

System.Threading.Tasks.Task.Factory.StartNew(currentContext => { 
System.Web.HttpContext.Current = (HttpContext)currentContext; 
_client.Personalization().Refresh();
 }, System.Web.HttpContext.Current.ApplicationInstance.Context);


my site won't wont run at all and gives the following object reference error:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Find.Personalization.ClientExtensions.Personalization(IClient client) +22
   EPiServer.Find.Personalization.RefreshPreferencesAttribute..ctor() +43
   System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor) +0
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1476
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +160

Any help as to why this would be greatly appreciated!

Regards,

Martin

Find indexing pages on creation (before publish) - new behaviour?

$
0
0

I´m wondering if Find indexing new pages upon creation (before hitting Publish) is something new? We have a property where editors can set if the page is to be indexed or not (setting NOINDEX, NOFOLLOW) and then configuration in an Initialization Module to say that pages with this setting should not be indexed. Like this:

ContentIndexer.Instance.Conventions.ForInstancesOf<PublicContentPage>().ShouldIndex(x => x.SearchEngineVisibility != "NOINDEX, NOFOLLOW");

This has worked well before as far as I know, but recently (not sure when) this seemed to be an issue and pages that have this setting are still indexed. When testing I saw that a page I created but not published was found in the Find index.

Does anyone have any insight? We´re running Find version 13.0.1 at the moment.


Find in Alloy Template - modifying the unified search excerpt

$
0
0

I'm new to find and am struggling with the lack of full sample site to work on. 

I'm using the Find 13.0.1 and CMS 11.9.0

So I only really have the alloy findSearchPage to work with. 

I'm trying to figure out how the excerpt is being created, because it seems like sometimes it is grabbing fields all over the place depending on the template. 

I'd like to find out more about the Unified Search and how I can adjust the except to something more user frieldly.  I know I can do something using SearchClient.Instance.Conventions.UnifiedSearchRegistry,  But I have no where to impliment this in the alloy findSearchPage controller. 

Any advice on how I can work this in and adjust the except I could get will be very helpful

Thank you!

Conditional Sorting in ElasticSearch

$
0
0

Even though I'm going to code this on EpiServer Find, first I want to solve my problem in ElasticSearch query. I have an object in my index which has a property as 

"SearchPromotion": [
        {"Order$$number": 8,"ItemForSearchPromotion": "109"
        },
        {"Order$$number": 8,"ItemForSearchPromotion": "10"
        }
    ]

What I want to do is really basic, a conditional sorting like this as described in query

"sort": [
        {"SearchPromotion.Order$$number": {"order": "desc","missing": "_last","ignore_unmapped": true,"nested_filter": {"term": {"SearchPromotion.ItemForSearchPromotion": "3"
                    }
                }
            }
        }
    ]

But the problem is, even I send a filter term which is not there like "foo" it returns with value 8 in sort for this particular object, where it supposed to turn -Infinity. Can someone help me here to tell me what am I doing wrong?

Kind regards.

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

boosting and sorting of search results

$
0
0

Hi,

We developed a intranet with EpiServer (version: CMS 6 R2)
and Indexing and Searching with Epi Find.

We got a couple of requirements related to search results, specifically
"facet" search. When we search for "erika" today, we got the search
results like this...

http://imgur.com/eVRfVp3

In the search results, we are showing results in the order employees
first, news pages and other pages. On the right side, you can see
categories /facets of the results.

Einarmattsson requirement - show employees first and rest of the pages
in the order of "recently changed first". We tried to solve this but
couldn't manage to do the both ( showing employees first, pages in the
orderby changed date) at the same time.

It would be great if could help in giving some pointer to us.

[Pasting files is not allowed]

Any query to filter recently edited contentItems by currentUser from find index?

$
0
0

Hi, im working on writing a find query that returns recentlt edited contentItems by current user. I need to read both pages and blocks. With this query i easily get PageData but not Block data. Any help? I've seen REcentlyChanged component in epi-cms/ but thats too complicate to understand at the moment.

SearchClient.Instance.Search<SitePageData>()
.Filter(x => x.ChangedBy.Match(currentUser)).Take(10)
.GetContentResult().ToList();

Exculding Search indexing and results for mulitple sites on DXC

$
0
0

We have created multiple sites in Episerver for our build. 

The code is shared between all sites and is deployed to the DXC.

We would like to keep the search indexing and results to be exclusive within each site we have created. 

What is the best approach to take here as we seem to have only one Episerver find index. 

Currently our search results page is returning resuts from all sites as expected.

Thanks

Kind regards

Sandeep

No SearchAttachmentText or SearchAttachment field for indexed PDF documents

$
0
0

Using

EPiServer.Find 13.0.1

EPiServer.Find.Cms.AttachmentFilter 13.0.1

And I have installed the Adobe PDF iFilter 64 11.0.01 on my laptop and restarted.

PDF files are stored as a type called TextBasedMedia when uploaded to the Episerver media folder.

[ContentType(GUID = "31F37C34-895D-4F39-BA8C-78FC1741E854")]
[MediaDescriptor(ExtensionString = "txt,pdf,doc,docx,ppt,pptx,xls,xlsx")]
[IndexInContentAreas]
public class TextBasedMedia : GenericMedia 
{}
// And GenericMedia is...
public class GenericMedia : MediaData
{
     /// <summary>
     /// Gets or sets the description.
     /// </summary>
     public virtual String Description { get; set; }
}

When inspecting TextBasedMedia in the index I cant't see any readable content from the PDF-file 

SearchAttachmentText$$String is missing 

as is SearchAttachment$$Attachment

 

Shouldn't there be a SearchAttachmentText$$String field at least?

I have cleared and re-indexed my developer index.

I'm able to perform a free-text search and get relevant hits matching text inside the indexed PDF-files using UnifiedSearch.

But as I understand I would get a better search relevancy using the attachment helper (EPiServer.Find.Cms.AttachmentFilter)?

What am I missing? 


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.

Track search phrases when using unified search?

$
0
0

Hi,

Is it possible to track search phrases (most common/without hits) when using unified search? If so, can anyone provide some dummy code on how to achieve this?

Note that I don't want to track clicks or anything, just the search phrases. I tried enabling click tracking but ended up with this ugly URL which I don't want to expose to the end user.

We're using EPiServer CMS 10.10.4.0 along with EPiServer Find 12.6.2.0.

Thanks!

EPiFind BoostMatching extension with Unified Search

$
0
0

Hi,

I need to confirm is .BoostMatching(c => c.Name.Match(playerName), 4) extension function works with unified search?

query = client
                .UnifiedSearch()
                .For(keyword)

Or do i need to use the .UsingUnifiedWeights() for Unified Search?

Free text search and .InField on block property in a page

$
0
0

Having:

public class PageType : PageData
{
   public virtual string DontWannaSearch { get; set; }
   public virtual BlockType BlockProperty { get; set; }
}

public class BlockType : BlockData
{
   public virtual XhtmlString Description { get; set; }     
}

How do I make sure that a search is only performed in fields PageType.Name and PageType.BlockProperty.Description?

Doesn't seem that .InField(x=>x.BlockProperty.Description) helps?

Best regards

Miroslav

Know when the Find index job fails

$
0
0

Is there a way to know if the index has been failed to index?

is there a function like onFailure() or similar?

(Purpose: When status becomes "Failed" in the admin mode, I need to send an email with the message.)

Note: I am working on EPiServer.Find.Cms --> 12.7.1.0  ,   CMS ---> 11.5.1.0 

Viewing all 6894 articles
Browse latest View live