Re: RE: run in eclipse error
I recently look at solr and lucene source, I do not know if I can solve this error and submit a patch? 380382...@qq.com From: Uwe Schindler Date: 2017-10-17 15:45 To: java-user@lucene.apache.org CC: d...@lucene.apache.org Subject: RE: run in eclipse error Hi, this has nothing to do with the Java version. I generally ignore this Eclipse-failure as I only develop in Eclipse, but run from command line. The reason for this behaviour is a problem with Eclipse's resource management/compiler with the way how some classes in Solr (especially facet component) are setup. In general, it is nowadays a no-go to have so called "non-inner" pkg-private classes. These are classes which share the same source code file, but are not nested in the main class. Instead they appear next to each other in the source file. This is a relic from Java 1.0 and should really no longer used! Unfortunately some Solr developers still create such non-nested classes. Whenever I see them I change them to be static inner classes. The problem with the bug caused by this is that Eclipse randomly fails (it depends on the order how it compiles). The problem is that Eclipse (but also other tools) cannot relate the non-inner class file to a source file and therefore cannot figure out when it needs to be recompiled. BTW. The same problem applies to other build system like javac and Ant when it needs to compile. When you change such an inner non-nested inner class, it fails to compile in most cases unless you do "ant clean". The problem is again, that the compiler cannot relate the class files to source code files! We should really fix those classes to be static and inner - or place them in separate source files. I am looking to find a solution to detect this with forbiddenapis or our Source Code Regexes, if anybody has an idea: tell me! Uwe - Uwe Schindler Achterdiek 19, D-28357 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message----- > From: 380382...@qq.com [mailto:380382...@qq.com] > Sent: Tuesday, October 17, 2017 4:43 AM > To: java-user > Subject: run in eclipse error > > i am trying to run solr in eclipse. but got the error "The type > FacetDoubleMerger is already defined". i don't know why. Whether it is jdk > version wrong? > Does git master need to use java9 for development? > > > 380382...@qq.com - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org
run in eclipse error
i am trying to run solr in eclipse. but got the error "The type FacetDoubleMerger is already defined". i don't know why. Whether it is jdk version wrong? Does git master need to use java9 for development? 380382...@qq.com
solr does not support the high availability of hadoop?
if there is two master of name node A and B, if A now is active .then we create a collection which index in hdfs and Configuration is the address of A. After a while B became active.now this application can not be used. Is there any way to solve it? 380382...@qq.com
big data inde in lucene
is there some one can help me? i have a program with 600billion docs(about 700TB). i want to index it with mapreduce and store it with hdfs.I suppose i can index data with lucene and search in solrcloud. i want to separate docs into 400 shards. I would like to know whether I can do so. Thanks. 380382...@qq.com
Re: Re: any analyzer will keep punctuation?
i think Ahmet is right. use WhiteSpace tokeniser will separate doc into token.and then you use custom filter can delete some punctuation you want to remove.Realization a custom filter is not very difficult. 380382...@qq.com 发件人: Yonghui Zhao 发送时间: 2017-03-08 12:22 收件人: Ahmet Arslan 抄送: java-user@lucene.apache.org 主题: Re: any analyzer will keep punctuation? Hi Ahmet, Thanks for your reply, but I didn't quite get your idea. I want to get an analyzer like standard analyzer but with punctuation customized. I think one way is customizing an analyzer with a customizer tokenizer like StandardTokenizer. In my tokenizer I will re-write StandardTokenizerImpl which seems a little complicate. I don't understand how "a customised word delimiter filter factory" works in tokenizer. 2017-03-06 22:26 GMT+08:00 Ahmet Arslan : > Hi Zhao, > > WhiteSpace tokeniser followed by a customised word delimiter filter > factory would be solution. > Please see types attribute of the word delimiter filter for customising > characters. > > ahmet > > > > On Monday, March 6, 2017 12:22 PM, Yonghui Zhao > wrote: > Yes whitespace analyzer will keep punctuation, but it only breaks word by > space. > > > I didn’t explain my requirement clearly. > > I want to an analyzer like standard analyzer but may keep some punctuation > configured. > > > 2017-03-06 18:03 GMT+08:00 Ahmet Arslan : > > > Hi, > > > > Whitespace analyser/tokenizer for example. > > > > Ahmet > > > > > > > > On Monday, March 6, 2017 10:21 AM, Yonghui Zhao > > wrote: > > Lucene standard anlyzer will remove almost all punctuation. > > In some cases, we want to keep some punctuation, for example in music > > search, some singer name and album name could be a punctuation. > > > > Is there any analyzer that we can customized punctuation to be removed? > > > > - > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > > >