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
void Main() | |
{ | |
using (var store = new DocumentStore { Urls = new[] { "http://swe-raventest:8080" } }.Initialize()) | |
{ | |
string waferId = "5809"; | |
using (var session = store.OpenSession("S9")) | |
{ | |
var timer = Stopwatch.StartNew(); | |
var docs = session.Query<ProcessStepResult>("ProcessStep/Search") |
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
namespace SomeNamespace { | |
public class BatchSearch : AbstractIndexCreationTask<ProcessStepDocument, BatchResult> { | |
public BatchSearch( ) { | |
Map = docs => from doc in docs | |
let tests = LoadDocument<StepExecutions>( doc.StepExecutionsId ) | |
where !string.IsNullOrWhiteSpace( doc.Batch ) | |
where tests.Runs.Where( r => r.Batch == doc.Batch ).All( d => d.TimeTicks <= doc.StopTimeTicks ) | |
select new BatchResult { |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Raven.Client.Documents.Session; | |
namespace Finisar.Phoenix.Raven { | |
public static class LuceneExstensions { | |
public static IDocumentQuery<T> WhereLucene<T>( this IDocumentQuery<T> query, string luceneQuery ) { | |
var luceneParser = new LuceneParser( luceneQuery ); |
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 System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
namespace AnalyzeFile { | |
class Program { | |
const int IdSize = 8; |
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
void Main() | |
{ | |
var store = new EmbeddableDocumentStore(); | |
store.RunInMemory = true; | |
using (store.Initialize()) | |
{ | |
var index = new DocumentIndex(); | |
index.Execute(store); | |
var docs = Enumerable.Range(0, 100000).Select(i => new SomeClass { Value = "Doc: " + i}).ToList(); |