November Happy Hour will be moved to Thursday December 5th.

EpIserver find understanding

Vote:
 

So I have set up the Find module. When I create a project in VS I can select Find option and it sets up things nicely for me. 

Then I created a free index for me on cloud and included that in the web.config

I went in to the admin panel and indexed the content. Does it index all the content? What if I just want to index only one table from my database?

Secondly I get this code set when I create the project 

 public ViewResult Index(FindSearchPage currentPage, string q, string selectedAnalyzer)
        {

            var model = new FindSearchContentModel(currentPage)
                {
                    PublicProxyPath = findUIConfiguration.AbsolutePublicProxyPath()
                };

            //detect if serviceUrl and/or defaultIndex is configured.
            model.IsConfigured = SearchIndexIsConfigured(EPiServer.Find.Configuration.GetConfiguration());

            if (model.IsConfigured && !string.IsNullOrWhiteSpace(model.Query))
            {
                var query = BuildQuery(model, selectedAnalyzer);

                //Create a hit specification to determine display based on values entered by an editor on the search page.
                var hitSpec = new HitSpecification
                {
                    HighlightTitle = model.CurrentPage.HighlightTitles,
                    HighlightExcerpt = model.CurrentPage.HighlightExcerpts,
                    ExcerptLength = model.ExcerptLength
                };

                try
                {
                    model.Hits = query.GetResult(hitSpec);
                }
                catch (WebException wex)
                {
                    model.IsConfigured = wex.Status != WebExceptionStatus.NameResolutionFailure;
                }
            }

   

            model.Analyzers = CreateAnalyzers(selectedAnalyzer);

            RequireClientResources();

            return View(model);
        }

So I am not sure do I have to use this or what? How do I access my database table that I want to index and search? 

#184521
Edited, Oct 30, 2017 12:23
Vote:
 

You should check out the documentation. This is a good place to start: http://world.episerver.com/documentation/developer-guides/find/Integration/episerver-cms-7-5-with-updates/Indexing/

#184527
Oct 30, 2017 13:34
* 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.