Skip to content

Commit

Permalink
started testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry.lahoda committed Dec 9, 2018
1 parent 0e43729 commit 3410f36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 0 additions & 2 deletions deploy-elastic.cmd
Expand Up @@ -2,8 +2,6 @@
:: https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html
:: https://www.elastic.co/guide/en/kibana/current/install.html
::
:: ElasticSearch http://localhost:9200/
:: Kibana http://localhost:5601/

set ORIG = %CD%
mkdir .runtime
Expand Down
3 changes: 3 additions & 0 deletions run-elastic.cmd
@@ -1,4 +1,7 @@
:: Run
:: ElasticSearch http://localhost:9200/
:: Kibana http://localhost:5601/

set JAVA_HOME=%cd%/.runtime/elastic/jdk-11.0.1+13
start %cd%/.runtime/elastic/elasticsearch-6.4.2/bin/elasticsearch.bat
start %cd%/.runtime/elastic/kibana-6.4.2-windows-x86_64/bin/kibana.bat
10 changes: 9 additions & 1 deletion tests/LiceneTests.cs
Expand Up @@ -3,6 +3,9 @@
using Lucene.Net;
using Lucene.Net.Search;
using Lucene.Net.Analysis;
using Lucene.Net.Index;
using Lucene.Net.Store;
using Lucene.Net.Search.Spans;

namespace tests
{
Expand All @@ -11,7 +14,12 @@ public class LiceneTests
[Fact]
public void Stemming()
{

SpanQuery[] clauses = new SpanQuery[3];
clauses[0] = new SpanMultiTermQueryWrapper<FuzzyQuery>(new FuzzyQuery(new Term("contents", "mosa")));
clauses[1] = new SpanMultiTermQueryWrapper<FuzzyQuery>(new FuzzyQuery(new Term("contents", "employee")));
clauses[2] = new SpanMultiTermQueryWrapper<FuzzyQuery>(new FuzzyQuery(new Term("contents", "appreicata")));
SpanNearQuery query = new SpanNearQuery(clauses, 0, true);

}
}
}

0 comments on commit 3410f36

Please sign in to comment.