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

Scoring and relevance, old article gets higher score then the new one

$
0
0

I'm using UnifiedSearch, a simple search like this:

SearchClient.Instance
    .UnifiedSearch()
    .For(query)

I know that this example is stupid and not a real world example but it's an easy way to reproduce the error.

I have two identical pages, except that one page is older (Document.PublishDate and Document.UpdateDate) and of course the url segment is different. The older page gets a higher score which must be wrong? I tried to boost the date but it seems like that's not possible when using UnifiedSearch? Is it possible to alter the default behavior so new articles are rated with a higher score?

- Marcus


How does synonyms work in episerver find

$
0
0

If I configure  "inomhusbad" and "simhall" to be bidirectional synonyms to "badhus". When I search for "inomhusbad" will that also include search results with "simhall" or do I need to configure that as well?

Index blocks that are not on a page

$
0
0

Hi,

I would like to index blocks that are not being used anywhere. Is this possible or do the blocks need to be on a page in order to be indexed. If it is possible what do I need to do for this to happen (custom index job?)?

Thanks,

Mark

DidYouMean from Optimization related queries only

$
0
0

Hi,

we have implemented the DidYouMean functionality to use the Related Query functionality provided in Online Center->Find->Optimization->Related Queries section.
http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/8/DotNET-Client-API/Searching/Related-Queries/

We haven't defined any entries in related queries section but still Site was showing some results, because it is showing results that other people are searching. (Tracking is enabled on site)
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=115046

I am wondering is there any way to use Online Center->Find->Optimization->Related Queries section without involving Other people searches.


Regards
Khurram

GetDidYouMean

$
0
0

Hi Friends

I want to implement GetDidYouMean with size attribute. Can you provide me with a sample code?

Syntax: GetDidYouMean(string query,Action<EPiServer.Find.Statistics.Api.DidYouMeanCommand>)

Issue retrieving facets results from a dictionary that has same keys as another dictionary

$
0
0

Basically, I have 2 dictionaries "MinimumMarketCustomerGroupPrices" and "MaximumMarketCustomerGroupPrices" in my find index for every product in my commerce website.

The minimum dictionary holds product price per market for each customer group for price facets purposes. The maximum one is used for display purposes in thumbnails page.

They have same exact keys in each. For ex:

Min => "Market_CustomerGroup$$number": 21.06 

Max => "Market_CustomerGroup$$number": 63.75

The maximum dictionary is saved in the index before the minimum dictionary.

When I am trying to fetch price facets results for returned products from the minimum dictionary, it always return the value in the max dictionary.

So the facet price range will always be $60-$80 instead of $20.00-$40.00

Any idea?

Loader exception in EPiServer.Find.UnifiedSearch.UnifiedSearchRegistryExtensions.ForInstanceOf(IUnifiedSearchRegistry registry)

$
0
0

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

SearchClient.Instance.Conventions.UnifiedSearchRegistry.ForInstanceOf<PageData>()

When I inspect the LoaderExceptions property I in the current case see that it can't find Microsoft.IdentityModel.Clients.ActiveDirectory 2.21.

In another project I had the same issue with a version of Microsoft.AspNet.WebApi.Cors and I have a couple of reports from workmates also running into the same error with different references.

Are we doing something run with nuget or is there something in Epis libraries that needs to be more forgiving?

Self referencing loop detected for property 'ManifestModule'

$
0
0

Hi,

We are getting the same error stacktrace described in this post:

http://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2014/8/Indexing-issues/

But we're getting it when attempting to do a nested search in Find. We have a nested convention applied:

SearchClient.Instance.Conventions.NestedConventions.ForType<Variant>().Add(v => v.ListingDates);

Where listing dates is a collection of a custom object type.

And in the search query:

            DateTime now = DateTime.Now;
            var exp = new NestedFilterExpression<Variant.Models.Variant, ProductListingDateRange>(
                item => item.ListingDates, 
                item => item.ListedFrom.Exists() & item.ListedFrom.LessThan(now) & item.ListedTo.Exists() & item.ListedTo.LessThan(now), 
                SearchClient.Instance.Conventions);
            return new FilterExpression<IContent>(x =>
                x.MatchType(typeof(Variant.Models.Variant)) &
                ((Variant.Models.Variant)x).ListingDates.MatchItem(item => exp));

It blows up with the error text 'Self referencing loop detected for property 'ManifestModule' - the JSON.NET serializer seems to be choking on a recursive reference within the Assembly, though why it's trying to serialize the assembly I have no idea!

Any pointers appreciated as to whether this is a bug or a problem with the way we're using Find.


Custom filtering to find all files under accessible folder

$
0
0

I'm building a searching page, where could find all document including pdf, word, excel ... now it's working well, however some folders are just accessible by some particular users/groups, so all documents under these folders should not be shown in the search result.

Now, we are post-processing the result list, and check permission of parent folder, if current user doesn't have permisson to read that folder, the result should be removed from list. However the paging is not working properly, because total result is wrong, and number of displaying item on each page is not consistent. We are changing the implementation to build a custom filter, to check parent folder permission, and just get relevant item from EPi find, we don't know how to do that with EPi Find client, anyone please help to solve that problem 

Index was outside the bounds of the array

$
0
0

A few times a week we experience problems with getting results from Find (12.0.0.4448).

Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.KeyCollection.Enumerator.MoveNext()
at System.Linq.Enumerable.d__88`1.MoveNext()
at System.Linq.Enumerable.d__81`1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at EPiServer.Find.SearchExtensions.GetResult(ITypeSearch`1 search, HitSpecification hitSpecification, Boolean filterForPublicSearch)

IIS reset solves the problem temporarily, but after some time the issue starts again. We have tried also clearing the index and reindexing, but it did not help either.

So far we have not found any specific, repeating condition that might initiate this problem. Just from time to time find starts to throw those errors...

Has anyone ever had similar problems?

BR,

Dawid

Get best bet hits only

$
0
0

var bestBetsResults = SearchClient.Instance.UnifiedSearchFor(queryParam, Language.Swedish).ApplyBestBets().GetResult();

Is it possible to have something like that but ONLY get best bet hits added from Find admin?

IsBestBets is false

$
0
0

Hi!

I'm trying to add some cool bestbets feature on our search page, but I'm having some problem with it. 

I've been following this tutorial on how to add best bets, http://www.epiknowledge.com/en/episerver-find/85/episerver-find-tutorial/best-bets/. 

The thing is that when I search for my best bet phrase I get the correct search result, but unifiedHit.Document.IsBestBet() and unifiedHit.Document.HasBestBetStyle() is always false. I have added the best bet with "Display best bet in its own style". 

What can I be missing? 

Running EPi Find version 9.6.0.3185

Kind regards / Henric

How does Episerver Find work in a load balanced environment?

$
0
0

I have a load balanced environment and I'm wondering how Episerver Find coops with this, is it a problem having two or more instances (potentially) calling the index simultaneously? Are there any best practices? Do I need to care at all? and so on...

Thanks!

Can't get BuildFilter<T>() to work

$
0
0

I have this method

public IEnumerable<TModel> GetAllStickyNewsForCurrentUser<TModel>(IEnumerable<int> categoryIds, ContentReference rootPage) where TModel : PageData, IAttachable
        {
            var categoryFilter = _searchClient.BuildFilter<TModel>();
            foreach (var categoryId in categoryIds)
            {
                categoryFilter.Or(x => x.Category.Match(categoryId));
            }
            return _searchClient.Search<TModel>()
                .Filter(x => x.IsSticky.Match(true))
                .Filter(x => x.Ancestors().Match(rootPage.ID.ToString()))
                .Filter(categoryFilter)  // returns the same result with or without this line
                .FilterForVisitor()
                .GetContentResult()
                .ToList();
        }

What I want it to do is to filter on a boolean called IsSticky where the root page is the root page parameter and where the page has the category parameters provided. Now this method works equally with or without the categoryFilter which makes me doubt I follow write correct code. Even if I change categoryFilter.Or to categoryFilter.And the result is the same, also categoryFilter.HasFilter always returns false.

What do I need to change to make this method take the category filtering into account? Thanks.

ANy Idea? from where these file came, native.history.js and find.js

$
0
0

Hi,

with my bundled files these are extra files I can spot in my HTML.

Any idea what are these files and how these lines are generating?

<script type="text/javascript" src="https://dl.episerver.net/8.8.0/epi-util/native.history.js"></script>

<script type="text/javascript" src="https://dl.episerver.net/8.8.0/epi-util/find.js"></script>

<script type="text/javascript">if(FindApi){var api = new FindApi();api.setApplicationUrl('/');api.setServiceApiBaseUrl('/find_v2/');api.processEventFromCurrentUri();api.bindWindowEvents();api.bindAClickEvent();api.sendBufferedEvents();}</script>

Regards

Khurram


Indexing documents with Find

$
0
0

Hi there!

Can anybody explain in a simple way how Find indexes documents (pdf, doc)? Are search queries matched against document content or just metadata? We have a site that uses Find and for certain queries documents that are not a match neither on the title nor in the content are returned. I'm new to Find so I'm a bit clueless on where the problem is. There's no customization done in code regarding the indexing and searching of just documents.

Thanks in advance

/Kenia

"Inaccurate" query results when search phrase contains a hyphen

$
0
0

Hi there,

We have a line of products essentially named "product-5", "product-6", "product-7".

We've run into an issue where some users are unhappy that searching with the phrase "product-5" will return not only product-5, but also product-6 and product-7 in the search results.

I've played around with different search phrases such as "product-abc" which will return no results, and "product-532skdfaj" which will return exactly the same results as searching for "product-5".

It seems that when a number follows a hyphen that anything after the hyphen is ignored.

Is there a way to fix this? Or are we going about something the wrong way? This is the code we are executing for the search:

query = client.Search(Language.English).For(searchPhrase)
.InField(v => v.ItemName)
.InField(v => v.ItemLongDesc)
.InAllField()
.WithAndAsDefaultOperator()
.UsingSynonyms();

Thanks in advance,
Jordan

Filter a specific page type by page reference property of this page where this reference's metadatatitle is " events"

$
0
0
  1. Filter a specific page type  by page reference property of this page where this page reference's metadatatiltle is " Event

Including fields problem

$
0
0

Hello

What types are supported by the client conventions IncludeField method?
I have the following(example code):

class InitModule
{
  private readonly Injected _client;
  void Initialize(InitializationEngine context)
  {
    _client.Service.Conventions.ForInstancesOf()
      .IncludeField(x => x.Field1.Select(y => y.StringValue));
  }
}
class Search
{
  private readonly Injected _client;
  void Search()
  {
    var res = _client.Service.Search()
      .Filter(x => x.Field1.Select(y => y.StringValue)
        .In(ArrayOfStrings)).GetResult()
  }
}

Field1 is a list of complex types with a string property. I want to filter on the list of string property values.
Should this work? It is supported?

/Peter

TermsFacetFor use for Webcontent

$
0
0

We are using Episerver find to index our site (using our own type ISearchableContent) along with an external connector to crawl another site for new articles.

We then use TermsFacetFor to build a list of types that we use as filters available in our search result screen.

// Code Shortened for example
var search = searchClient.UnifiedSearch(Language.English);
search = search.TermsFacetFor(x => x.SearchSection);
search = search.Filter(x => x.MatchTypeHierarchy(typeof(ISearchableContent)) | x.MatchType(typeof(WebContent)));
var unifiedResults = search.GetResult(new HitSpecification { HighlightExcerpt = true, EncodeExcerpt = false }, searchDefinition.FilterForVisitor);
var contentLabelFacets = unifiedResults.TermsFacetFor(x => x.SearchSection);

The issue we have is the WebCotent doesnt appear to implement all of the properties of ISearchContent, namely SearchSection which we are using for our Facets.

Any idea how we use could specify a common field for facets in both types of content? All of the fields in WebContent seem unsuitable.

Couple of Ideas I had were
- somehow force all the WebContent to have a set value for SearchSection?
- maybe use SearchSourceName in WebContent and add that to ISearchableContent but that would require the index to have a specific name which doesnt seem ideal.

Ben

Viewing all 6894 articles
Browse latest View live