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

Filter by all categories

$
0
0

Hi

I've to filter a page type ie Article pages conating a list of categories

My query is


var selectedCategories = new List<int>{1,2,3}

var result = _client.Search<ArticlePage>()

        

this code return articles conatain any of the categories in the list. But I want to return articles contain all the categories in list


Episerver Filtering of Nested List

$
0
0

I am currently building a solution that has a number of Venues (Content Item) that have a list of Courses that are at the location. I am currently able to filter the venues based on a geolocation field that is present on the Venue content item. I have indexed the list onto the developer index and an example of this can be found below:

"RelatedCourses$$nested": [
        {"EndDate$$date": "2017-12-06T00:00:00Z","IsWeekdayCourse$$bool": true,"IsWeekendCourse$$bool": true,"StartDate$$date": "2017-12-04T00:00:00Z"
        },
        {"EndDate$$date": "2017-12-14T00:00:00Z","IsWeekdayCourse$$bool": true,"IsWeekendCourse$$bool": true,"StartDate$$date": "2017-12-16T00:00:00Z"
        },
        {"EndDate$$date": "2017-12-10T00:00:00Z","IsWeekdayCourse$$bool": true,"IsWeekendCourse$$bool": true,"StartDate$$date": "2017-12-11T00:00:00Z"
        }
],

When I come to filter the courses, I can not seem to filter out the courses that do not meet the criteria, such as start dates. If I use the find filter query, all of the courses are returned if there is a single match rather than only returning valid courses. If there are no matches this works as expected and does not return anything.

I have been looking at the Nested2Find and this has the same issue as the normal find queries.

Is there a way to do this using find?

After installing latest Episerver packages, Find content indexing job UI breaks

$
0
0

After upgrading the Episerver version from 10.10.1 to 11.3.1, we observed that Episerver Find Content Indexing Job is not working. During this upgrade, Episerver Find also upgraded to 12.7.1.

After this upgrade, Indexing job can not be run or you can not open the history tab.

I found one article - https://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2017/2/after-installing-latest-episerver-packages-find-content-indexing-job-ui-breaks/

But when tried with disabling the Episerver Find Content Indexing Job and restarting the web site and again enabling the job, the problem still persists.

We are using Episerver clopud version (DXC).

Any help will be appreciated.

Thanks.

Personalized Find: in which controller should I refresh properties?

$
0
0

I am looking at personalization documentation: https://world.episerver.com/documentation/developer-guides/personalization/personalized-find/

It says that I have to refresh properties. For this reason, I have to add an attribute to the controller or call API explicitly. But it doesn't say which controller - search controller or product controller or any other controller?

Also, the documentation says that it requires caching of those refreshed properties. Is it implemented by Episerver or should I implement this caching?

401 Exception When Indexing Site?

$
0
0

Hi all - 

I'm getting this error for every piece of content in my site that I try to index using Episerver Find's index job:

An exception occurred while indexing content [Link ###] [GUID ##############] [Type TYPE] [Name NAME]:
The remote server returned an error: (401) Unauthorized. Unauthorized (see log for more information)

  1. I triple-checked all my configs... they seem right, in fact I followed the directions here
  2. This site is using CMS + Commerce, and I installed the 3 NuGet packages listed here
  3. I've never indexed the site before - brand new installation / first time indexing

Has anyone else dealt with this?

Filtering categories using OR filters inside an AND filter

$
0
0

I am currently creating a service using Episerver Find. I have managed to get everything working apart from the filtering of Categories. From the API that is recieved in the solution, we get a multiple lists of Categories that have been selected inside a category list.

E.g. 

Categories:
[
    ["Category 1","Category 2"
    ],
    ["Category 11","Category 12"
    ]
]

After this, when searching using Find, I need to check for items that have "Category 1" OR "Category 2" AND "Category 11" OR "Category 12". If none of the items have these categories assigned to them, or as an example only have Category 1 assigned and nothing from the second list, no results should be returned.

I can not seem to find a way to do this. I Have tried a Filter Builder using the OR method and then passing that into the the Search.Filter() method but that seems to get changed to an OR filter instead of an AND filter. Here is the code of that just in case I there is a mistake

        public static ITypeSearch MatchCategories(
            this ITypeSearch search, IList categoryList)
        {
            var categoryFilter = SearchClient.Instance.BuildFilter();
            foreach (var category in categoryList)
            {
                categoryFilter =
                    categoryFilter.Or(x => x.RelatedCourses.MatchItem(p => p.CourseCategories.Match(category)));
            }
            return search.Filter(categoryFilter);
        }



Excluding images from search results

$
0
0

Hi, does anyone know how to exclude images from search results? For example, I have images with the word "Cancun" in the file name. When I search "Cancun," those images show up in the search results. In Find > Configure, should I give the Title property less weight?

Nested Queries with More Than One Level

$
0
0

We're implementing Find for a client who requires filtering on dynamic attributes at the ProductVariant level. 

IE

  • Product
    • ProductVariant
      • Attributes
        • Color: Brown
        • Material: Wood
    • ProductVariant2
      • Attributes
        • Color: Brown
        • Material: Steel

A possible search would be searching for a Product that has a ProductVariant that has both Attributes with the combination {"Color":"Brown"} and {"Material":"Wood"}. From what I understand, Nested Queries, facets and filters only allow for one additional level and expect to check a property at that level. I've found examples where Dictionaries work, but this would limit us to one key value pair per attribute which I would prefer not to do.

Is there another alternative to this? I've seen others searching for a similar feature set, but haven't found a solution that doesn't limit us to a Dictionary. Searching by ProductVariant and finding distinct Products is not an option.


Episerver Find and .Net Core 2

$
0
0

Hello. 

I'd like to use the EpiServer Find Client library in an ASP.Net Core 2.0 Web API.

https://nuget.episerver.com/en/OtherPages/Package/?packageId=EPiServer.Find

When I build the project, I get the following warning:

Package 'EPiServer.Find 12.7.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

Some questions...

  1. Will a .Net Core 2 compatible version be released?
  2. If not, what's the best way to work around this issue?

Thanks

Howard

Facets on ItemCollection

$
0
0

Hi guys

I have an ItemCollection<string> property on a product:

        [CultureSpecific]
        [Searchable]
        [FacetProperty]
        [BackingType(typeof(PropertyDictionaryMultiple))]
        [SelectMany(SelectionFactoryType = typeof(EnumStringSelectionFactory<BrandType>))]
        [Display(Name = "Product brands", GroupName = PropertyGroupNames.Product, Order = 700)]
        public virtual ItemCollection<string> ProductBrands { get; set; }

This is indexed just fine within Find, but I cannot get the list of facets for it. Is there a way to do it?

Can you please help me out?

Best regrads

Miroslav

Orderby on Displayname

$
0
0

Hi,

When using OrderBy in a Find Query:

 query = query.OrderBy(x => x.DisplayName);

We're seeing results like this:

1. bed & onderschuifbed Doppia

2. box Ambra vlak - 2-persoons

When we would like the Ambra to be above the "bed & onderschuifbed". Is this because of the ampersand? And how can we get Find to order this by alphanumeric only (if that's a solution in this case)

Thanks!

/Mark

EPiServer.Find.Commerce Type Load Error on Startup With Version 10.1.1

$
0
0

I'm attempting to update a project to the latest nuget packages, and am getting a "could not load type" error with version 10.1.1 of EPiServer.Find.Commerce.  The specific error is coming from FindCommericeInitializationModule when it tries to call "ApplyConventions."  Exception message is as follows:

"Could not load type 'Microsoft.Extensions.Logging.ILogValues' from assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.":"Microsoft.Extensions.Logging.ILogValues"


I decompiled Microsoft.Extensions.Logging.Abstractions, and that version does not contain a definition for ILogValues.  Downgrading EPiServer.Find.Commerce back to version 10.1.0 fixes the error.  The release notes for this version of the nuget package list the only bugfix as something related to initialization.

How Does Find Work WIth Non-Standard Locales

$
0
0

I'm working on a  project with Find and Commerce.  The client is suggesting for us to use non-standard locales within their website to help them manage content, does anyone know if find can cope with non-standard locales?

My recommendation would always go with an ISO standard, why reinvent the wheel right?  However, what I think is good and what I end up sometimes writing can be different.  The client has a third-party PIM where this approach makes sense if you come at it with a PIM first approach.

Let's say we have a website with three languages enabled:

EN - global English

Iran - ir-en (This is a non-standard locale, they have made up). 

Iran - fa-ir

This is so they can have a global English site, an Iran site in Iranian a specific Iran tailored English site, in this approach we use locale as a market identifier, rather than an actual locale, e.g. it's a way of not having to create subsites for different languages.

In commerce is I try and add a market with 'ir-en' an invalid locale, if the locale is not set on the server, an exception is thrown.  I then have to run some powershell script to regsiter it.

Will find be able to cope with this?  Obviously, find won't be able to run this powershell script?  In the background does find create a locale object on my content, or, does all the locale look-ups work based on a string identifier?

If I create content in find, 

Episerver Find and .Net Core 2

$
0
0

Hello. 

I'd like to use the EpiServer Find Client library in an ASP.Net Core 2.0 Web API.

https://nuget.episerver.com/en/OtherPages/Package/?packageId=EPiServer.Find

When I build the project, I get the following warning:

Package 'EPiServer.Find 12.7.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

Some questions...

  1. Will a .Net Core 2 compatible version be released?
  2. If not, what's the best way to work around this issue?

Thanks

Howard

Multi-words synonyms and WithAndAsDefaultOperator

$
0
0

I have an issue where multi-word synonyms have to work together with WithAndAsDefaultOperator, but I found that it doesn't:

https://support.episerver.com/hc/en-us/articles/115004105823?input_string=episerver+find+synonym+do+not+work

In the resolution section, it is mentioned that is going to be done in some future version and the link to the issue. Unfortunately, the issue is not available anymore.

Can anyone from Episerver take a look where the reported issue disappeared? And when this is going to be fixed?


Boost PDF files if name contains query

$
0
0

Hi!

I have a request from a client asking to boost PDF files if the name of the PDF contains the query, but I haven´t found a good way to accomplish that.

Basically what I want to do is this:

var searchResult = SearchClient.Instance.UnifiedSearchFor(searchString, findLanguage)
                                          .BoostMatching(p => p.MatchTypeHierarchy(typeof(PdfFile)) & ((PdfFile)p).Name.Contains(searchString), 4)
                                          .ApplyBestBets()
                                          .Track()
                                          .Skip((page - 1) * hitsPerPage)
                                          .Take(hitsPerPage)
                                          .GetResult();

Of course .BoostMatching(p => p.MatchTypeHierarchy(typeof(PdfFile)) & ((PdfFile)p).Name.Contains(searchString), 4) doesn´t work because that won´t be compiled to a filter, but it´s the essence of what I want. I can´t use AnyWordBeginsWith() since the requirement isn´t that the word in the name should start with the query. The MatchFuzzy() won´t work either because as I understand it, it will match on like similiar words which isn´t the requirement either.

Have I missed something or is this just not possible? Seems quite simple so I thought that would be possible. Hopefully I´ve just missed something :)

Best,
Petra

EpiAdmin/Find/Manage "Unable to connect to the web server. What would you like to do?"

$
0
0

The Problem

In admin view, when I go to Find -> Manage (or Configure) I get a popup saying

"Something Went Wrong"

"Unable to connect to the web server. What would you like to do?"

In the web browser console the following error object is printed

message:"Unable to load /epiadmin/Find/api/bestbets/?tags=siteid%3A84BFAF5C52A349A0BC61A9FFB6983A66%2Clanguage%3A7D2DA0A9FC754533B091FA6886A51C0D&size=25&dojo.preventCache=1508240072128 status: 404"

response:Object

responseText:""

stack:"_3ee@http://localhost:60625/epiadmin/Find/ClientResources/dojo.js:2:105831
_578@http://localhost:60625/epiadmin/Find/ClientResources/dojo.js:2:148152
_584@http://localhost:60625/epiadmin/Find/ClientResources/dojo.js:2:148427

status:404

xhr: ...


My episerver find index string is correct, I know that because both indexing and searching works.

I have been trying to solve this problem for way too long now. I have been googling and searching on epiworld without any success.

Appreciate any help that I can get.

Project Information

EpiFind version: 12.6.0

Episerver version: 10.10.4

The episerver version was updated from version 9 recently without any problems. The update was done before we decided to use Episerver find.

Cheers,

Stani

Episerver Find in a separate project

$
0
0

Hi everyone,

I am wondering if it is possible to have Episerver Find service in a separate project and not in the same project where Episerver CMS is referenced.
I am trying to keep responsibilities apart and code in a modular way.
I tried to create a new project (Class library) and added Episerver.Find references, then I edited the Web project Web.config, but the Find tab doesn't show up in the Editor view. Probably it is because during Episerver.Find installation some UI files are modified.

Based on your experience is there a way to separate them or is it not possible right now?

Thank you in advance.

After installing latest Episerver packages, Find content indexing job UI breaks

$
0
0

After upgrading the Episerver version from 10.10.1 to 11.3.1, we observed that Episerver Find Content Indexing Job is not working. During this upgrade, Episerver Find also upgraded to 12.7.1.

After this upgrade, Indexing job can not be run or you can not open the history tab.

I found one article - https://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2017/2/after-installing-latest-episerver-packages-find-content-indexing-job-ui-breaks/

But when tried with disabling the Episerver Find Content Indexing Job and restarting the web site and again enabling the job, the problem still persists.

We are using Episerver clopud version (DXC).

Any help will be appreciated.

Thanks.

Media assets pane search not working

$
0
0

Hello guys

Can someone help me understand why I can't search, by name, in the media assets pane? There's lots of pdfs and docxs but they do absolutely not show up when searching. I can search by their ID though, but need to be able to search by name.

Image 1 https://imgur.com/MLHbPP6 shows the media pane.

Image 2 https://imgur.com/7dDU25C shows search query "inbjudan" and no hits, though there should be several hits (don't know exactly how many).

Image 3 https://imgur.com/AdzTwUg shows searching in the Find admin page for "inbjudan" with lots of document hits including the one I'm looking for (circled).

As far as I can see there hasn't been any tampering with what gets indexed in any of the IInitializableModule-files.

Have anyone seen this before?

Regards,

Patrik

Viewing all 6894 articles
Browse latest View live