Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Configuring EpiServer Find on Foundation project

Vote:
 

I have a Foundation project working and basically everything works except when I try to view a Catalog (i.e https://localhost:5001/en/fashion/mens/mens-shoes/). I know I need to modify the appsettings.json "changeme" values - I have 

Initial 

-------------------------------------------------------------------------------------------------------------------------------------------------------------

"EPiServer": {
    "Find": {
      "DefaultIndex": "changeme",
      "ServiceUrl": "http://changeme",
      "TrackingSanitizerEnabled": true,
      "TrackingTimeout": 30000
    },

SocketException: No such host is known.

System.Net.Dns.GetHostEntryOrAddressesCore(string hostName, bool justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch)

HttpRequestException: No such host is known. (changeme:80)

System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string host, int port, HttpRequestMessage initialRequest, bool async, CancellationToken cancellationToken)

WebException: No such host is known. (changeme:80)

System.Net.HttpWebRequest.GetResponse()

ServiceException: No such host is known. (changeme:80)

EPiServer.Find.Api.Command.GetResponse<TResult>(IJsonRequest request)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tried to change to: 

"EPiServer": {
"Find": {
"DefaultIndex": "localhost",
"ServiceUrl": "http://localhost",
"TrackingSanitizerEnabled": true,
"TrackingTimeout": 30000
},

or

"EPiServer": {
"Find": {
"DefaultIndex": "Index",
"ServiceUrl": "http://localhost",
"TrackingSanitizerEnabled": true,
"TrackingTimeout": 30000
},


but get this error.

ExtendedSocketException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:80

System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

HttpRequestException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:80 (localhost:80)

System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(string host, int port, HttpRequestMessage initialRequest, bool async, CancellationToken cancellationToken)

WebException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:80 (localhost:80)

System.Net.HttpWebRequest.GetResponse()

ServiceException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:80 (localhost:80)

EPiServer.Find.Api.Command.GetResponse<TResult>(IJsonRequest request)



#298427
Mar 16, 2023 14:01
Vote:
 

You will need to setup a development index, this can be done at https://find.episerver.com/

#298428
Mar 16, 2023 14:15
Vote:
 

I did this and the error no longer shows, but nothing shows up under the Mens and Womens clothing categories and catalog pages

#298431
Edited, Mar 16, 2023 16:58
Vote:
 

Your index is initially empty. You will need to Re-index the catalog by going to CMS > Admin > Find Content Indexing job. Once you run it your search index will be populated with the entries. You can check if by going to the top navigation menu, selecting Search & Navigation > Overview

#298434
Mar 16, 2023 17:51
Vote:
 

Lika Aniket pointed out, navigate to the admin interface » scheduled jobs » Search & Navigation Content Indexing Job » start manually

It is also a good idea to check your preferred settings here

#298481
Mar 17, 2023 7:59
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.