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

Episerver Find - ignore domain

$
0
0

We use shared episerver database, blob storage and Find index in development.

Some developers prefer to use localhost, and others prefer to set up dev.mystite.com in the hosts file.

Can Find be configured to ignore domains? Some pages are indexed twice (one document per domain), so we have to re-index everything from time to time.


How does did you mean / related work?

$
0
0

Hey,

So I know how to make EpiFind give me did you mean results but I can't find out how that works under the hood.  It seems to be based on what people searched for after their initial search.  Has anyone found docs that explain how it works?

Does (no) usage of Track() affects search results?

$
0
0

Hi, 

My client is considering stop tracking queries in Find, to get rid of the extra javascript that is placed in the html by Episerver when Track() is used for queries. Will this affect the search results, since there likely will be less statistics to build search results upon?

Regards, 

Andreas

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

Filter to exclude files not published on any page

$
0
0

Hi,

How can I add a filter to this to exclude files that are not published/used on any page using unified search?

Model.ResultsFiles = searchFiles.ApplyBestBets().GetResult();

Or can I exclude it in the FindInitialization file?

/Frode

Boosting based on depth of page

$
0
0

Hello guys, 

I'm looking for a way to boost my pages based on their depth (the higher up the page, the higher the boost).

For example:

  • Home (boost 3)
    • Theme (everything on this level should get boost 2)
      • SubTheme (everything on this level should get boost1)
        • Detail page (everything on this level should get boost no boost)

Current function:

public static SearchItems SiteSearch(string q, int? p, int pageSize)
        {
            p = p ?? 1;
            var results = SearchClient.Instance.UnifiedSearchFor(q)
                .ApplyBestBets()
                .Filter(x => !x.MatchType(typeof(ImageFile)))
                .BoostMatching(x => x.MatchTypeHierarchy(typeof(SitePageData)), 1)
                .Skip((p - 1) * pageSize ?? 0)
                .Take(pageSize)
                .StaticallyCacheFor(TimeSpan.FromHours(1))
                .GetResult();
            return new SearchItems
            {
                SearchResults = results.Select(x => new SearchItem(x)).ToList(),
                ExecutionTimeInMS =  results.ProcessingInfo.ServerDuration,
                NumberOfHits = results.TotalMatching
            };
        }

Thanks in advance!

unifiedSearch doesnt find result on page of type FaqItemPage, but Search does

$
0
0

Hi, I'm having an issue where unifiedSearch doesn't find anything on a certain page type.

I can see the page type is being indexed under Episerver Find in admin.

This code get results of type FAQItemPage:  _epiFindClient.Search<FAQItemPage>).For("episerver").GetContentResult();

While this doesnt find anything of type FAQItemPage : _epiFindClient.UnifiedSearch().For(“episerver”).InAllField().Take(1000).GetResult();

Anybody have any clues on how to debug this?

How to GetTopQueries ?


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.

How does External Best Bets works

$
0
0

Hello,

We have an implementation of Episerver Find (version 9.3.0.2674)  and our client wants to add Best bets for their sub domain links, which in turn I believe we have to use the External Link on Best bets. 

With Episerver Find we can successfully add the best bets for local and external link, when serching for Local from front end it returns the results, however when we tried to search those ones defined in external best bets, it does not return any values. All the time we have 0 Record count from the episerver find. 

Tried with after Indexing.

Analysing the index, we can see the ExternalBestBets in overview section of episerver find. Following is what it looks like in Index, there are no titles, search string, etc.,

{"___types": ["EPiServer.Find.Framework.BestBets.ExternalUrlBestBet","System.Object"
    ],"$type": "EPiServer.Find.Framework.BestBets.ExternalUrlBestBet, EPiServer.Find.Framework","Id$$string": "5097b23b-cd4f-49c4-8b83-d74fde6bfe84"
}

However, the local link search works fine.

Is this something an issue with episerver.find and if any one managed to make it to work.

Thanks,

Rams

No hit on indexed field using unified search

$
0
0

Hi,

I have a field CaseNumber that is indexed but I can't get any hits on the field when I search using unified search. The number is present 4 times in the indexed content, as CaseNumber 

"CaseNumber$$string": "2015/12345-6"

and CaseNumber within SearchMetadata 

"CaseNumber": {"StringValue$$string": "2015/12345-6".


Anyone got an idea why?

/Frode

Related queries return only editorial entries using REST API

$
0
0

We're running Commerce 9.6 site with Find version 10.0.0.3291 and we're facing an issue with Related queries described in this post from 2014: https://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=91180

When we're trying to use the REST API for related queries described here:
https://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/10/search-statistics/introduction-to-search-statistics/

we only get hits for editorial content, as in manually added suggestions. Our statistics tracking is on and I can see these kinds of reports from the Find UI:

But when I do a query to https://ourdomain/find_v2/_didyoumean?query=vaihteistonostin&size=1 I get this as a result:

{
   "status":"ok",
   "hits":[
      {
         "suggestion":"nostin",
         "type":"editorial"
      }
   ]
}

So for some reason, the automatic "vaihteisto" suggestion is not returned as a related query. Is there a missing configuration or something similar that's preventing the dynamic suggestions from getting returned?

Unified search - Searching for news return hits on openinghours

$
0
0

Hi,

I'm implementing unified search and in testing we search for news and it returns hits on openinghours or time related words.

This is in norwegian, so searching for nyhet(news) returns hits like åpningstider(opening hours), tidsbegrensninger(timelimits), tidsrommet(time interval) and so on.

Is this a bug or does it have a logical explanation?

/Frode

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?

Not Found while Updating Index

$
0
0

Hi,

I'm trying to update spesific indexed object by document ID by this piece of code

_findClient.Update<EntryContentBase>(content.ContentGuid+"someLanguageCode").Field(x => x.SomeStatus(), 1).Execute();

I'm getting 404 not found error, so Find API couldn't find the object by given id. Problem is when I browse index from EpiServer Find menu, I can see indexed object with that spesific id. Since I'm having this issue for a long time, I already made a convention to id of index such as 

conventionBuilder.IdIs(x=>x.ContentGuid + x.Language.Name);

I reindexed after this convention added to the code. What could be the problem here?

Kind regards,

Tarik.
 


Common Terms Query?

How to GetTopQueries ?

[BUG] OriginalObjectGetter is missing for WebContent

$
0
0

Hi,

OriginalObjectGetter is missing for WebContent. Is this by-design? This means we can't do following:

private static WebContent GetWebContent(UnifiedSearchHit hit)
{
    if (hit.OriginalObjectGetter != null)
    {
        var original = hit.OriginalObjectGetter.Invoke();
        if (original is WebContent)
        {
            return (WebContent)original;
        }
    }
    return null;
}

Nested queries: Filter number of nested objects returned from FIND

$
0
0

Hi!

I was wondering if it possible to filter the number of nested objects that FIND returns in a filtered nested query? Consider the following:

public class Team
{
 public Team(string name)
 {
  TeamName = name;
  Players = new List<Player>();
 }
 public string TeamName { get; set; }
 public List<Player> Players { get; set; }
}

public class Player
{
  public string FirstName { get; set; }
  public string LastName { get; set; }
  public int Salary { get; set; }
}
result = client.Search<Team>()
 .Filter(x => x.Players, p => p.FirstName.Match("player1") &
    p.LastName.Match("Ronaldo"))
 .GetResult();

Data

Team 1 contains player1 (name = player1)and player2 (name = player2)
Team 2 contains player3  (name = player3) and player4 (name = player4) 

I would like to achive a search result from find that contains
Team1 with Players only containing the object player1. Is it possible? Now it seems like FIND returns Team 1 with both player1 and player2.

/Magnus 

Do episerver find implement parent-child realtion?

Viewing all 6894 articles
Browse latest View live