rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act
ion/admin/cluster/state/ClusterStateRequestBuilder;
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver
.java:300)
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja
va:315)
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229
)
at
org.elasticsearch.river.RiversService.createRiver(RiversService.java:
148)
at
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers
Service.java:275)
at
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers
Service.java:269)
at
org.elasticsearch.action.support.TransportAction$ThreadedActionListen
er$1.run(TransportAction.java:93)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act
ion/admin/cluster/state/ClusterStateRequestBuilder;
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver
.java:300)
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja
va:315)
at
fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229
)
at
org.elasticsearch.river.RiversService.createRiver(RiversService.java:
148)
at
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers
Service.java:275)
at
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers
Service.java:269)
at
org.elasticsearch.action.support.TransportAction$ThreadedActionListen
er$1.run(TransportAction.java:93)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
On 6 March 2014 13:55, David Pilato david@pilato.fr wrote:
Hmm…
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.
So your query should work…
Just to check, could you try with a TermQuery instead a MatchQuery?
Simple Analyzer does not simply lowercase the content but also break tokens which is not what I was expecting when reading: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html
I should have read all details (one click later):
A tokenizer of type lowercase that performs the function of Letter Tokenizer and Lower Case Token Filter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of Letter Tokenizer and Lower Case Token Filter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.
Could you open an issue in FSRiver project so I can fix that?
On 6 March 2014 13:55, David Pilato david@pilato.fr wrote:
Hmm…
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.
So your query should work…
Just to check, could you try with a TermQuery instead a MatchQuery?
Simple Analyzer does not simply lowercase the content but also break tokens which is not what I was expecting when reading: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html
I should have read all details (one click later):
A tokenizer of type lowercase that performs the function of Letter Tokenizer and Lower Case Token Filter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of Letter Tokenizer and Lower Case Token Filter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.
Could you open an issue in FSRiver project so I can fix that?
On 6 March 2014 13:55, David Pilato david@pilato.fr wrote:
Hmm…
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.
So your query should work…
Just to check, could you try with a TermQuery instead a MatchQuery?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.