This file contains 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 Lucene.Net.Analysis.Snowball; | |
using Lucene.Net.Util; | |
namespace FieldTripFinder.Lucene.Analyzers | |
{ | |
public class EnglishSnowballAnalyzer : SnowballAnalyzer | |
{ | |
public EnglishSnowballAnalyzer() : base(Version.LUCENE_30, "English") | |
{ | |
This file contains 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 Raven.Abstractions.Data; | |
using Raven.Tests.Helpers; | |
using Xunit; | |
namespace LuceneAnd.RavenTests | |
{ | |
public class CanUseAndOperatorOnLuceneQuery : RavenTestBase | |
{ | |
private class Place | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script> | |
</head> | |
<body> | |
<input type="text" id="search" style="width: 300px;" /><input type="button" id="searchBtn" value="Search"/><br/> | |
<div id="map" style="width: 300px; height: 300px;"></div> | |
<div id="results" style="width: 600px;height: 600px;background-color:gray;color:white;"></div> |
This file contains 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
session.Advanced.DatabaseCommands.Patch("Searches/" + entity.Id, new [] // TODO: Don't use magic strings! | |
{ | |
new PatchRequest | |
{ | |
Type = PatchCommandType.Inc, | |
Name = "Visits", | |
Value = new RavenJValue(1) | |
} | |
}); |
This file contains 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
curl -XPUT localhost:9200/authors/bare_author/1 -d'{ | |
"name": "Multi G. Enre" | |
}' | |
curl -XPUT localhost:9200/authors/bare_author/2 -d'{ | |
"name": "Alastair Reynolds" | |
}' | |
curl -XPOST localhost:9200/authors/book/_mapping -d '{ | |
"book":{ |