Note that Title
in the result ends with a )
, but in the highlight result it is missing. What going on?
{
"content-search-sites-20-01-2017-16-12-22": {
"mappings": {
"searchindexdocument": {
"properties": {
[ | |
{ | |
"id" : "1483228800-2017-01-01-test-search-excerpt", | |
"site" : "Test", | |
"title": "Test Search Excerpt", | |
"url": "http://localhost:4000/2017/01/01/test-search-excerpt.html", | |
"categories" : [], | |
"tags" : [], |
public class Document { | |
public string Id {get;set;} | |
public string Site {get;set;} | |
} | |
I would like the value of `Site` to be the document `_type`. How do I accomplish that via inference in NEST? `InferMappingFor<T>`. |
POST jekyll/_suggest?pretty | |
{ | |
"title-author-suggestion" : { | |
"prefix" : "Donald", | |
"completion" : { | |
"field" : "Suggest", | |
"contexts" : { | |
"Authors" : "Julie Pace and Catherine Lucey", | |
"Tags" : [ "general" ] | |
} |
There is a reason this mentality exists and it isn't one of self loathing. The reason why people "leave" ___________ is because it is impossible to be a good ___________ developer. To work in a development shop with a team is to continually cater for the lowest common denominator of that team and the vast majority of software shops using ___________ have a whole lot of lowest common denominator to choose their bad development decisions for.
Tangible examples? I remember well the insistence of one boss that we use ___________ because some developers would find it hard to use ___________. I remember the steadfast committal to ___________ because the "new concepts" in ___________ were going to take too long for the team to become productive in. There is now this furore over ___________ and the new thing in the tiny 0.001% of people that care are whether they persist in using ___________ or switch to more productive environments. Of course ___________ gets it right here and points out
[config] | |
command = deploy.cmd |
We would like to secure sites hosted on IIS that may / or may not be written with ASP.NET. Additionally, these sites may not be applications we have complete control over (OSS project).
An OpenID Connect HttpModule
client that can be added to any IIS hosted application via web.config
and offer crude authentication. Crude authentication means setting a few basic rules in app settings: endpoints and claims. This would work with an ASP.NET application, NodeJs application, etc. Anything that can be hosted on IIS.
using System; | |
using Octokit; | |
using System.Linq; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var client = new GitHubClient(new ProductHeaderValue("test")); | |
public static class SearchExtensions | |
{ | |
public static IQueryable<T> Search<T>(this IQueryable<T> value, object search) | |
{ | |
if (search == null) | |
{ | |
return value; | |
} | |
var filterProperties = search |
For<HttpContext>().AlwaysUnique().Use(ctx => HttpContext.Current); | |
For<HttpRequestMessage>().AlwaysUnique().Use(ctx => ctx.GetInstance<HttpContext>().Items["MS_HttpRequestMessage"] as HttpRequestMessage); | |
For<UrlHelper>().AlwaysUnique().Use(ctx => new UrlHelper(ctx.GetInstance<HttpRequestMessage>())); |