Re: Dependency Need to include for embedded solr.

2015-02-27 Thread Shawn Heisey
On 2/27/2015 12:51 AM, Danesh Kuruppu wrote:
 I am doing some feasibility studies for moving directly to solr 5.0.0.
 
 One more thing, It is related to standalone server.
 
 How security handle in solr standalone server. lets say, I configured my
 application to use remote solr standalone server.
 
 1. How I would enable secure communication between my application and solr
 server.
 2. How solr server authenticate user.

Solr itself does not contain any security mechanisms, because Solr does
not own *any* of the network communication layers where such security
must be implemented.

It is not currently possible for Solr to implement any reasonable
security mechanisms.  Eventually (hopefully in the near future), Solr
will be a completely standalone application that does not rely on a
servlet container, and when that happens, it will be possible to
implement security within Solr itself.

Right now, configuring SSL is not very hard, and you can also enable
authentication in the servlet container.  It's my understanding that
using certificate-based authentication works already, but if you
configure basic authentication (username/password), you will find any
kind of distributed searching (including SolrCloud) will not function
correctly.  This is because Solr does not currently have any mechanism
to provide the username/password when communicating with another instance.

Thanks,
Shawn



Re: Dependency Need to include for embedded solr.

2015-02-26 Thread Shawn Heisey
On 2/26/2015 11:41 PM, Danesh Kuruppu wrote:
 My application is a standalone application. I though of embedding solr
 server, so I can pack it inside my application.
 
 In solr 5.0.0, solr is no longer distributed as a war file. how I can
 find the war file from the distribution.

I am glad to see that people are actually reading documentation that is
included with the release.

With 5.0.0 (and probably the next few 5.x releases), Solr actually still
is a war file.  You can find it in server/webapps in the binary
download.  There are two reason we are telling everyone it's not a war
file:  1) We now have very capable scripts to start and stop Solr with
optimal java options, so there's no longer any need to rely on scripts
packaged with a servlet container.  2) In a future 5.x release, Solr
actually will become a standalone application, not a war ... preparing
users in advance is a good idea.

 I need some advanced features like synonyms search, stop words, wild card
 search etc. It would be great, if you can provide some references to get
 idea which dependencies need to add to get those features.

If you don't want to simply add every dependency included in the war,
then you can use the tried and true method for finding the minimum set
of jars:  Try to get it running.  If it fails, look at the log and see
which class it was unable to find.  Add the relevant jar to the
classpath and try again.

Thanks,
Shawn



Re: Dependency Need to include for embedded solr.

2015-02-26 Thread Danesh Kuruppu
Thanks shawn,
I am doing some feasibility studies for moving directly to solr 5.0.0.

One more thing, It is related to standalone server.

How security handle in solr standalone server. lets say, I configured my
application to use remote solr standalone server.

1. How I would enable secure communication between my application and solr
server.
2. How solr server authenticate user.

Thanks
Danesh

On Fri, Feb 27, 2015 at 12:35 PM, Shawn Heisey apa...@elyograg.org wrote:

 On 2/26/2015 11:41 PM, Danesh Kuruppu wrote:
  My application is a standalone application. I though of embedding solr
  server, so I can pack it inside my application.
 
  In solr 5.0.0, solr is no longer distributed as a war file. how I can
  find the war file from the distribution.

 I am glad to see that people are actually reading documentation that is
 included with the release.

 With 5.0.0 (and probably the next few 5.x releases), Solr actually still
 is a war file.  You can find it in server/webapps in the binary
 download.  There are two reason we are telling everyone it's not a war
 file:  1) We now have very capable scripts to start and stop Solr with
 optimal java options, so there's no longer any need to rely on scripts
 packaged with a servlet container.  2) In a future 5.x release, Solr
 actually will become a standalone application, not a war ... preparing
 users in advance is a good idea.

  I need some advanced features like synonyms search, stop words, wild card
  search etc. It would be great, if you can provide some references to get
  idea which dependencies need to add to get those features.

 If you don't want to simply add every dependency included in the war,
 then you can use the tried and true method for finding the minimum set
 of jars:  Try to get it running.  If it fails, look at the log and see
 which class it was unable to find.  Add the relevant jar to the
 classpath and try again.

 Thanks,
 Shawn




Dependency Need to include for embedded solr.

2015-02-26 Thread Danesh Kuruppu
Hi all,

I need to include embed solr server into my maven project. I am going to
use latest solr 5.0.0.

Need to know which dependencies I need to include in my project. As I
understand, I need to have solr-core[1] and solr-solrj[2]. Do I need to
include lucene dependency in my project. If so, which dependencies we need
to include to enable all indexing capabilities.

1. http://mvnrepository.com/artifact/org.apache.solr/solr-core/5.0.0
2. http://mvnrepository.com/artifact/org.apache.solr/solr-solrj/5.0.0

Please help
Thanks
Danesh


Re: Dependency Need to include for embedded solr.

2015-02-26 Thread Shawn Heisey
On 2/26/2015 10:07 PM, Danesh Kuruppu wrote:
 I need to include embed solr server into my maven project. I am going to
 use latest solr 5.0.0.
 
 Need to know which dependencies I need to include in my project. As I
 understand, I need to have solr-core[1] and solr-solrj[2]. Do I need to
 include lucene dependency in my project. If so, which dependencies we need
 to include to enable all indexing capabilities.
 
 1. http://mvnrepository.com/artifact/org.apache.solr/solr-core/5.0.0
 2. http://mvnrepository.com/artifact/org.apache.solr/solr-solrj/5.0.0

Using the embedded server may not be the best idea.  A lot of Solr
functionality is not available in the embedded server.  You can't use
SolrCloud, which is a relatively easy way to provide high availability.
 The legacy method for redundancy, master-slave replication, also does
not work in the embedded server.  The admin UI is not available.

If you choose to go ahead with the embedded server ... for complete
safety, you should probably extract the war file and copy all the jars
from WEB-INF/lib.  If you want to take a more minimalistic approach, I
think these are the Lucene jars you will need for minimum functionality:

lucene-analyzers-common-5.0.0.jar
lucene-codecs-5.0.0.jar
lucene-core-5.0.0.jar
lucene-expressions-5.0.0.jar
lucene-queries-5.0.0.jar
lucene-queryparser-5.0.0.jar

There are quite a few Lucene jars, and I'm not overly familiar with
everything that Solr uses, so I might have left some out that would be
required for very basic functionality.  For more advanced functionality,
additional Lucene jars will definitely be required.

There are also third-party jars that are required, such as slf4j jars
for logging.  The codebase as a whole has dependencies on things like
google guava, several apache commons jars, and other pieces ... I have
no idea which of those can be left out when using the embedded server.
I tried to find a definitive list of required jars, and was not able to
locate one.

Thanks,
Shawn



Re: Dependency Need to include for embedded solr.

2015-02-26 Thread Danesh Kuruppu
Thanks Shawn,

My application is a standalone application. I though of embedding solr
server, so I can pack it inside my application.

In solr 5.0.0, solr is no longer distributed as a war file. how I can
find the war file from the distribution.

I need some advanced features like synonyms search, stop words, wild card
search etc. It would be great, if you can provide some references to get
idea which dependencies need to add to get those features.

Thanks
Danesh

On Fri, Feb 27, 2015 at 11:32 AM, Shawn Heisey apa...@elyograg.org wrote:

 On 2/26/2015 10:07 PM, Danesh Kuruppu wrote:
  I need to include embed solr server into my maven project. I am going to
  use latest solr 5.0.0.
 
  Need to know which dependencies I need to include in my project. As I
  understand, I need to have solr-core[1] and solr-solrj[2]. Do I need to
  include lucene dependency in my project. If so, which dependencies we
 need
  to include to enable all indexing capabilities.
 
  1. http://mvnrepository.com/artifact/org.apache.solr/solr-core/5.0.0
  2. http://mvnrepository.com/artifact/org.apache.solr/solr-solrj/5.0.0

 Using the embedded server may not be the best idea.  A lot of Solr
 functionality is not available in the embedded server.  You can't use
 SolrCloud, which is a relatively easy way to provide high availability.
  The legacy method for redundancy, master-slave replication, also does
 not work in the embedded server.  The admin UI is not available.

 If you choose to go ahead with the embedded server ... for complete
 safety, you should probably extract the war file and copy all the jars
 from WEB-INF/lib.  If you want to take a more minimalistic approach, I
 think these are the Lucene jars you will need for minimum functionality:

 lucene-analyzers-common-5.0.0.jar
 lucene-codecs-5.0.0.jar
 lucene-core-5.0.0.jar
 lucene-expressions-5.0.0.jar
 lucene-queries-5.0.0.jar
 lucene-queryparser-5.0.0.jar

 There are quite a few Lucene jars, and I'm not overly familiar with
 everything that Solr uses, so I might have left some out that would be
 required for very basic functionality.  For more advanced functionality,
 additional Lucene jars will definitely be required.

 There are also third-party jars that are required, such as slf4j jars
 for logging.  The codebase as a whole has dependencies on things like
 google guava, several apache commons jars, and other pieces ... I have
 no idea which of those can be left out when using the embedded server.
 I tried to find a definitive list of required jars, and was not able to
 locate one.

 Thanks,
 Shawn