Re: Solr Analyzer for Vietnamese

2017-07-13 Thread Đạt Cao Mạnh
Sorry Erick, I had a draft but forgot to press send button. I took a look at the Analyzer and It seems take some time to update it, But I'm going to spend my weekends on update the repo. Thanks! On Thu, Jul 13, 2017 at 7:00 PM Jan Høydahl wrote: > Cao, did you see this

Issue: Hit Highlighting Working Inconsistently in Solr 6.6

2017-07-13 Thread Vikram Oberoi
Hi there, I'm seeing inconsistent highlighting behavior using a default, fresh Solr 6.6 install and it's unclear to me why or how to go about debugging it. Hit highlights either show entirely correct highlights or none at all when there should be highlights. - Some queries show highlights

Re: Solr Analyzer for Vietnamese

2017-07-13 Thread Ahmet Arslan
Hi Eirik, I believe "icu tokenizer" does a decent job on text written in non-alphabets. Ahmet On Monday, May 22, 2017, 10:32:22 AM GMT+3, Eirik Hungnes wrote: Hi, There doesn't seem to be any Tokenizer / Analyzer for Vietnamese built in to Lucene at the moment.

RE: Need domain configuration assistance

2017-07-13 Thread Bertini, Vickie
Thanks to everyone who has responded. I will do some testing once the firewall port is adjusted. -Original Message- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: Thursday, July 13, 2017 3:07 PM To: solr-user@lucene.apache.org Subject: Re: Need domain configuration assistance **

Re: Need domain configuration assistance

2017-07-13 Thread Shawn Heisey
On 7/13/2017 11:23 AM, Bertini, Vickie wrote: > > I have installed Solr 6.5.1 as a service on our Windows Server 2012. > It is up and running properly under localhost:8983, however, I have a > domain name I want to assign to it so our external content delivery > servers can reach it for our web

Re: compiling Solr

2017-07-13 Thread Shawn Heisey
On 7/13/2017 2:16 PM, Steve Pruitt wrote: > I have been following the instructions on the Solr Wiki for compiling Solr. > I started with the 6.6 source. The only thing I did different was download > the src directly. I did not use Subversion. > I made through step 7 - Compile application with

Re: NullPointerException on openStreams

2017-07-13 Thread Joel Bernstein
If you can include the stack trace and version of Solr we can see what's causing the exception. Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Jul 13, 2017 at 4:33 PM, Joe Obernberger < joseph.obernber...@gmail.com> wrote: > Thanks for this. I'm now trying to use stream for classify, but

Re: How to Debug Solr With Eclipse

2017-07-13 Thread Lars Karlsson
Another option that I normally find easier is attaching to existing Solr instance and do remote debugging. It require changing the JVM options and restarting Solr, then from eclipse choose Remote Java Application. On Thu, 13 Jul 2017 at 19:50, Rainer Gnan wrote: >

Re: compiling Solr

2017-07-13 Thread Daniel Collins
That page was last edited in 2014, things have moved on a little since then! Solr doesn't produce a WAR file by default anymore, as running in a generic servlet container isn't a supported configuration. What is produced from ant dist is effectively the exploded form of the WAR. You can still

Re: NullPointerException on openStreams

2017-07-13 Thread Joe Obernberger
Thanks for this. I'm now trying to use stream for classify, but am getting an ArrayIndexOutOfBounds error on the stream.open(). I'm setting the streamFactory up, and including .withFunctionName("classify", ClassifyStream.class) - but is that class in orga.apache.solr.handler? -

compiling Solr

2017-07-13 Thread Steve Pruitt
I have been following the instructions on the Solr Wiki for compiling Solr. I started with the 6.6 source. The only thing I did different was download the src directly. I did not use Subversion. I made through step 7 - Compile application with no problems. However, the dist folder contains

Re: NullPointerException on openStreams

2017-07-13 Thread Joe Obernberger
Thank you Joel - that was it. context = new StreamContext(); context.setSolrClientCache(StaticInfo.getSingleton(props).getClientCache()); context.workerID = 0; context.numWorkers = 1; context.setModelCache(StaticInfo.getSingleton(props).getModelCache()); Then:

Re: NullPointerException on openStreams

2017-07-13 Thread Susheel Kumar
This the working code snippet I have, if that helps public static void main(String []args) throws IOException { String clause; TupleStream stream; List tuples; StreamContext streamContext = new StreamContext(); SolrClientCache solrClientCache = new SolrClientCache();

Re: NullPointerException on openStreams

2017-07-13 Thread Joel Bernstein
It's most likely that you're not setting the StreamContext. New versions of Solr expect the StreamContext to be set before the stream is opened. The SolrClientCache also needs to present in the StreamContext. You can take a look at how the StreamHandler does this for an example:

NullPointerException on openStreams

2017-07-13 Thread Joe Obernberger
Hi All - trying to call ClouderSolrStream.open(), but I'm getting this error: java.io.IOException: java.lang.NullPointerException at org.apache.solr.client.solrj.io.stream.CloudSolrStream.constructStreams(CloudSolrStream.java:408) at

Re: How to Debug Solr With Eclipse

2017-07-13 Thread Giovanni De Stefano
Hello Rainer, you have the right link: select the version you want and download the -src version. Once un untar the .tgz you can run `ant eclipse` from the command line and then import the generated project in eclipse. Please note that you will need both and and ivy installed (just start with

Re: How to Debug Solr With Eclipse

2017-07-13 Thread govind nitk
Hi, Solr has releases, kindly checkout to the needed one. cheers On Thu, Jul 13, 2017 at 11:20 PM, Rainer Gnan wrote: > Hello community, > > my aim is to develop solr custom code (e.g. UpdateRequestProcessor) > within Eclipse AND to test the code within a

How to Debug Solr With Eclipse

2017-07-13 Thread Rainer Gnan
Hello community, my aim is to develop solr custom code (e.g. UpdateRequestProcessor) within Eclipse AND to test the code within a debuggable solr/lucene local instance - also within Eclipse. Searching the web led me to multiple instructions but for me no one works. The only relevant question I

Re: Need domain configuration assistance

2017-07-13 Thread govind nitk
1. run solr on different port other than 8983. 2. If you are exposing it publicly, dont expose through port. But have a apache/nignx server in middle to pass traffic to solr. cheers On Thu, Jul 13, 2017 at 11:13 PM, Susheel Kumar wrote: > But don't expose Solr outside to

Re: Need domain configuration assistance

2017-07-13 Thread Susheel Kumar
But don't expose Solr outside to public... On Thu, Jul 13, 2017 at 1:41 PM, Susheel Kumar wrote: > This window solr server must have a name and IP address associated with > it. Check from external content deliver servers if port 8983 to Solr server > is open and if so you

Re: Need domain configuration assistance

2017-07-13 Thread Susheel Kumar
This window solr server must have a name and IP address associated with it. Check from external content deliver servers if port 8983 to Solr server is open and if so you can refer solr via http://:/solr. if port 8983 is not open then try to run solr 80/8080 or work with network team to open the

Need domain configuration assistance

2017-07-13 Thread Bertini, Vickie
I have installed Solr 6.5.1 as a service on our Windows Server 2012. It is up and running properly under localhost:8983, however, I have a domain name I want to assign to it so our external content delivery servers can reach it for our web search. However, I am very new to Solr and mostly only

Re: suggestors on shingles

2017-07-13 Thread govind nitk
Hi Alessandro, Currently fuzzy or lookup suggester is not supporting - returning suggestions generated from the shingles at index time. As you guided, I am using FreeText suggester. But freetext suggester won't support the fuzzyness. Let me know your inputs on this edge case. Regards, Govind

RE: [EXTERNAL] - Re: accessing numfound value

2017-07-13 Thread Steve Pruitt
I see no reference to QueryResponse from ResponseBuilder. QueryResponse appears to be a solr client class. On ResponseBuilder there is a rsp member pointing to a SolrQueryResponse. But this class doesn't seem to have access to the total hits. I tried rb. getResponseDocs() which returns a

RE: [EXTERNAL] - Re: accessing numfound value

2017-07-13 Thread Steve Pruitt
Sorry. I am just starting out, so it's hard to know what is needed to describe a problem. Yes, I get matches. I use the default row setting of 10 and I the response has 10 matches. But, the total number found is 53, which is correct. I am using a test index and I know 53 is the correct

Re: enable fault-tolerance by default on collection?

2017-07-13 Thread Erick Erickson
That's the purpose of the and sections of the various request handlers in solrconfig.xml. Best, Erick On Thu, Jul 13, 2017 at 1:32 PM, wrote: > Is it possible to enable shards.tolerant=true parameter by default? > > We are using Spark Thrif Server`s JDBC API to access a

Re: suggestors on shingles

2017-07-13 Thread alessandro.benedetti
To do what ? If it is a use case, please explain us. If it is just to check that the analysis chain worked correctly, you can check the schema browser or use Luke. If you just want to test your analysis chain, you can use the analysis tool in the Solr admin. Cheers - ---

Re: HTTP ERROR 504 - Optimize

2017-07-13 Thread Walter Underwood
Optimize can take a long time. Why are you doing an optimize? It doesn’t really optimize the index, it only forces merges and deletions. Solr does that automatically in the background. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Jul 13, 2017,

dynamic datasource password in db_data_config file

2017-07-13 Thread javeed
HI Team, As per my requirement I need to pass password dynamically to data source . I did it successfully through Http URL by auto indexing time. Like below. In Application data import property file declare URL and password like this params=/dataimport?command=delta-import=false=true=Beta*

HTTP ERROR 504 - Optimize

2017-07-13 Thread marotosg
Hi, I am getting HTTP ERROR 504 when doing an optimization operation. Not always, it's pretty random. Trying to figure out if Solr, jetty or either the browser breaks the connection after specific time. I have successful optimizations which take aprox 10 minutes. I had a look to Solr Source code

Re: Creating a custom auth plugin for solr

2017-07-13 Thread Jan Høydahl
I assume you already read http://lucene.apache.org/solr/guide/6_6/authentication-and-authorization-plugins.html When you implement a custom auth plugin you are free to e.g. pull HTTP headers for validation,

Re: Solr Analyzer for Vietnamese

2017-07-13 Thread Jan Høydahl
Cao, did you see this email from Eirik? -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 1. jun. 2017 kl. 13.33 skrev Eirik Hungnes : > > Thanks Erick, > > Dat: > > Do you have more info about the subject? > > 2017-05-22 17:08 GMT+02:00 Erick

Re: suggestors on shingles

2017-07-13 Thread govind nitk
Hi Alessandro, Thanks a lot. I followed your blog and able to get the suggestions. But I am curious about solr returning the tokenized data. So, lot of filtering happended, shingles are generated, now Is it possible to get those finally genrated tokens any way ? Regards, Govind On Thu, Jul

Re: accessing numfound value

2017-07-13 Thread Susheel Kumar
You get back QueryResponse after executing a query. Then you can simply use below to get qTime, ElapsedTime and numFound. response.getQTime(), response.getElapsedTime() response.getResults().getNumFound() Thanks, Susheel On Wed, Jul 12, 2017 at 4:29 PM, Steve Pruitt

Re: accessing numfound value

2017-07-13 Thread Rick Leir
Steve, This is a wild guess because you are not telling us nearly enough. The guess: you are not getting any matches or hits. O. Cheers --Rick On July 12, 2017 4:29:43 PM EDT, Steve Pruitt wrote: >I'm having difficulty finding the value for numFound that is in the

Re: Do I need to declare TermVectorComponent for best MoreLikeThis results?

2017-07-13 Thread alessandro.benedetti
You don't need the TermVectorComponent at all for MLT. The reason the Term Vector is suggested for the fields you are interested in, is just because this will speed up the way the MLT will retrieve the "interesting terms" out of your seed document to build the MLT query. If you don't have the

Re: suggestors on shingles

2017-07-13 Thread alessandro.benedetti
I would recommend this blog of mine to get a better understanding of how tokenization and the suggester work together [1] . If you take a look to the FuzzyLookupFactory, you will see that it is one of the suggesters that return the entire content of the field. You may be interested to the

Re: enable fault-tolerance by default on collection?

2017-07-13 Thread alessandro.benedetti
I would recommend to play with the default, append and invariants [1] element for the reuqestHandler node. Identify the request handler you want to use in the solrconfig.xml and then add the parameter you want. You should be abkle to manage this through your source version control system. Cheers

Creating a custom auth plugin for solr

2017-07-13 Thread srshaik
Hi, I am new to solr security and wanted some help / reference on how to implement custom authentication and authorization in solr cloud. I would like to use JWT. Is that possible ? -- View this message in context:

enable fault-tolerance by default on collection?

2017-07-13 Thread imran
Is it possible to enable shards.tolerant=true parameter by default? We are using Spark Thrif Server`s JDBC API to access a collection, while testing it has occurred that a completely gone shard is creating problems. Can this behavior be enabled through configuration and not from inside the