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?
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/
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
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?