This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IndexSet SetName="ukTownsIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/uktowns/"> | |
| <IndexUserFields> | |
| <add Name="name" EnableSorting="true"/> | |
| <add Name="county" EnableSorting="true"/> | |
| <add Name="country"/> | |
| <add Name="grid_reference" /> | |
| <add Name="latitude" /> | |
| <add Name="longitude"/> | |
| <add Name="postcode_sector"/> | |
| </IndexUserFields> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Web.Editors; | |
| using Umbraco.Web.PublishedModels; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @inherits UmbracoViewPage<Documentation> | |
| @{ | |
| Layout = "SubMaster.cshtml"; | |
| } | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-9"> | |
| <div class="page-header"> | |
| <h1>Edit: @Model.Name</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| XCOPY /s /y "$(TargetDir)$(ProjectName).*" "$(ProjectDir)\..\$(SolutionName).Web\bin\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Core.Events; | |
| using Umbraco.Core.Logging; | |
| using Umbraco.Core.Services; | |
| using Umbraco.Core.Services.Implement; | |
| namespace MvcCourse.Core | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Web.Mvc; | |
| using Umbraco.Core; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Core.Models.PublishedContent; | |
| using Umbraco.Web.Models; | |
| using Umbraco.Web.Mvc; | |
| namespace UmbracoDI | |
| { | |
| public class MyComposer : IComposer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TextPageController : RenderMvcController | |
| { | |
| private readonly IExamineManager _examineManager; | |
| public TextPageController(IExamineManager examineManager) | |
| { | |
| _examineManager = examineManager; | |
| } | |
| public ActionResult TextPage(ContentModel model) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IndexSet SetName="ukTownsIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/uktowns/"> | |
| <IndexUserFields> | |
| <add Name="name" EnableSorting="true"/> | |
| <add Name="county" EnableSorting="true"/> | |
| <add Name="country"/> | |
| <add Name="grid_reference" /> | |
| <add Name="latitude" /> | |
| <add Name="longitude"/> | |
| <add Name="postcode_sector"/> | |
| </IndexUserFields> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <add name="TownIndexer" | |
| type="Examine.LuceneEngine.Providers.SimpleDataIndexer, Examine" | |
| indexSet="ukTownsIndexSet" | |
| dataService="SearchCourse.Core.Indexer.DbIndexer, SearchCourse.Core" | |
| analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" | |
| indexTypes="ukTown" | |
| runAsync="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ISearchResults Search(string term, string limit) | |
| { | |
| var terms = new List<IExamineValue>(); | |
| if (term.Contains(" ")) | |
| { | |
| foreach (var t in term.Trim().Split(' ')) | |
| { | |
| terms.Add(t.MultipleCharacterWildcard()); | |
| terms.Add(t.SingleCharacterWildcard()); |