Re: Parent Child Schema Design

2016-01-07 Thread Pranaya Behera

Hi Binay,
  Are you saying there is no need to add anything to the 
existing schema that I have ? While indexing all I have to provide is a 
_childDocuments_ key and the key => value pair as per I want without 
needing to specify it in the schema.xml ?


On Thursday 07 January 2016 01:47 PM, Binoy Dalal wrote:

How to index such documents is also given in the same blog under Indexing
Nested Documents.
You just need to add a json key _childDocuments_ to the doc and specify the
child doc as the value for this key.
There was a similar question on the mailing list earlier. You can find that
here:
https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201512.mbox/


On Thu, 7 Jan 2016, 13:16 Pranaya Behera  wrote:


Hi,
   I have read yonik.com/solr-nested-objects/ which states that there
is no need for additional schema changes other than having a _root_
which is already present in the schema.xml. But it never specified on
for the child elements what would the schema look like. And the post
actually uses curl with json to index data to solr. I am using python
client to index data to solr.

I have products as the core. This is one document but it has more
interlinked child documents. As of now it is a single flat structure
schema. But if I would like to use the parent-child relationship how
would I go about it. Sample current schema:








Now I would like to add child document to it. Lets say I would like to
add another field named steps which will contain id, product_id, name,
description. This steps would be a multivalued as per product we have
multiple steps.

Can someone help me figure out how to go about this ?

--
Thanks & Regards
Pranaya Behera

--

Regards,
Binoy Dalal



--
Thanks & Regards
Pranaya Behera



Re: Parent Child Schema Design

2016-01-07 Thread Binoy Dalal
Yes. Provided your fields are already defined.

On Thu, 7 Jan 2016, 17:52 Pranaya Behera  wrote:

> Hi Binay,
>Are you saying there is no need to add anything to the
> existing schema that I have ? While indexing all I have to provide is a
> _childDocuments_ key and the key => value pair as per I want without
> needing to specify it in the schema.xml ?
>
> On Thursday 07 January 2016 01:47 PM, Binoy Dalal wrote:
> > How to index such documents is also given in the same blog under Indexing
> > Nested Documents.
> > You just need to add a json key _childDocuments_ to the doc and specify
> the
> > child doc as the value for this key.
> > There was a similar question on the mailing list earlier. You can find
> that
> > here:
> > https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201512.mbox/
> > 
> >
> > On Thu, 7 Jan 2016, 13:16 Pranaya Behera  wrote:
> >
> >> Hi,
> >>I have read yonik.com/solr-nested-objects/ which states that
> there
> >> is no need for additional schema changes other than having a _root_
> >> which is already present in the schema.xml. But it never specified on
> >> for the child elements what would the schema look like. And the post
> >> actually uses curl with json to index data to solr. I am using python
> >> client to index data to solr.
> >>
> >> I have products as the core. This is one document but it has more
> >> interlinked child documents. As of now it is a single flat structure
> >> schema. But if I would like to use the parent-child relationship how
> >> would I go about it. Sample current schema:
> >>
> >>  >> required="true" multiValued="false" />
> >> 
> >> 
> >>  >> multiValued="true"/>
> >>  >> required="false" multiValued="false" />
> >>  >> required="false" />
> >>
> >> Now I would like to add child document to it. Lets say I would like to
> >> add another field named steps which will contain id, product_id, name,
> >> description. This steps would be a multivalued as per product we have
> >> multiple steps.
> >>
> >> Can someone help me figure out how to go about this ?
> >>
> >> --
> >> Thanks & Regards
> >> Pranaya Behera
> >>
> >> --
> > Regards,
> > Binoy Dalal
> >
>
> --
> Thanks & Regards
> Pranaya Behera
>
> --
Regards,
Binoy Dalal


Re: Solr server not starting

2016-01-07 Thread Paul Hoffman
On Wed, Jan 06, 2016 at 05:11:06PM +0100, agonn Qurdina wrote:
> Hi,
> 
> I am using Solr server with Echoprint service 
> (https://github.com/echonest/echoprint-server). The first time I started
>  it everything worked perfectly. This is the way I started it:
> 
> java -Dsolr.solr.home=/home/echoprint-server/solr/solr/solr/ 
> -Djava.awt.headless=true -Xmx2048m -Xms2048m -jar start.jar
> 
> Then I stopped it and I cannot start it anymore as it gets stuck at the 3rd 
> row of execution:
> 
> 2016-01-06 11:04:19.030::INFO:  Logging to STDERR via 
> org.mortbay.log.StdErrLog
> 2016-01-06 11:04:19.165::INFO:  jetty-6.1.3
> 2016-01-06 11:04:19.231::INFO:  Extract 
> jar:file:/home/echoprint-server/solr/solr/webapps/solr.war!/ to 
> /tmp/Jetty_0_0_0_0_8502_solr.war__solr__-rnc92a/webapp
> 
> It does not continue to execute anymore. I check if it is running in the
>  processes list and it turns out it is NOT. Please help me to solve this
>  problem!
> 
> Best regards,
> 
> Agon

This could be a permissions problem -- for example, perhaps you started 
it as root the first time and are now attempting to start it as some 
other user.

Paul.

-- 
Paul Hoffman 
Systems Librarian
Fenway Libraries Online
c/o Wentworth Institute of Technology
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384 (FLO main number)


Re: When there will be clusterstate.json after solr v5.3?

2016-01-07 Thread Erick Erickson
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-MigrateClusterState



On Wed, Jan 6, 2016 at 10:43 PM, forest_soup  wrote:
> We using solr 5.3.1 with solrcloud mode.
>
> As the document said, the state of newly created collections is stored in
> the state.json of each collection in zookeeper.
> But we do notice the clusterstate.json appears after below steps:
> 0, create collections.
> 1, shutdown all solr servers
> 2, clear all data related to the solrcloud in zookeeper
> 3, restart all solr servers.
>
> Then the existing collections state will be still written to
> clusterstate.json in zookeeper instead of state.json of each collection.
>
> Our questions are:
> 1, Is there any other cases the clusterstate.json appears after we adopt
> solr 5.3?
> 2, Is there any way to config to let existing collection also using
> state.json instead of clusterstate.json?
>
> Thanks!
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/When-there-will-be-clusterstate-json-after-solr-v5-3-tp4249057.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Parent Child Schema Design

2016-01-07 Thread Binoy Dalal
To clarify, what I meant was any field that you wish to use either  in your
child or parent document has to already be defined in the schema.
You need to define these fields normally, meaning no you are not required
to make any special changes to the field definition for use in either
parent or child docs.
Once done, you can use these fields in the parent as well as child docs.

I suggest you first try out the example given in yoniks blog. It's fairly
simple and will give you a good idea of the concepts and the steps
involved. Once you're confident in your understanding of the concepts,
you'll be able to implement your own setup easily.

On Thu, 7 Jan 2016, 21:37 Tom Evans  wrote:

> On Thu, Jan 7, 2016 at 3:53 PM, Pranaya Behera 
> wrote:
> > Can you give an example ? I have already mentioned what I want to do in
> my
> > first email ? Confused in this part where you said provided fields are
> > already defined.
>
> Solr collections are homogeneous, so child documents have the same
> schema as parent documents. If you need to have different fields in
> the parents/children, you will need to define all the disjoint fields
> as required="false".
>
> Cheers
>
> Tom
>
-- 
Regards,
Binoy Dalal


Re: Parent Child Schema Design

2016-01-07 Thread Yonik Seeley
On Thu, Jan 7, 2016 at 1:50 PM, Steven White  wrote:
> How nested can a parent / child document be?  And how many child documents
> can be in a parent node?

No real limit (other than the normal ones... you can't have more than
2B docs in a single segment)... probably just a practical limit based
on memory (they are all indexed atomically at the same time)

-Yonik


Re: I cannot create replica in Solr

2016-01-07 Thread persoy
 
Actually It has. I can see configs/contracts. 
First this error is throwing
org.apache.solr.common.SolrException: Could not load conf for core
contracts_shard1_replica1: Error loading solr config from solrconfig.xml
at
org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:635)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:611)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:628)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at
org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)

After that this error is throwing

org.apache.solr.common.SolrException: Error CREATEing SolrCore
'contracts_shard1_replica1': Unable to create core
[contracts_shard1_replica1] Caused by: Can't find resource 'solrconfig.xml'
in classpath or '/configs/contracts',
cwd=C:\CM_10.1.0\INDEXSERVER\searchserver-distribution\target\searchserver\solr\server
at
org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:661)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
at
org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
at
org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:431)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)



--
View this message in context: 
http://lucene.472066.n3.nabble.com/I-cannot-create-replica-in-Solr-tp4248998p4249207.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solrcloud for Java 1.6

2016-01-07 Thread Aswath Srinivasan (TMS)
Hi fellow developers,

I have a situation where the search front-end application is using java 1.6. 
Upgrading Java version is out of the question.

Planning to use Solrcloud 5.x version for the search implementation. The show 
stopper here is, solrj for solrcloud needs atleast java1.7

What best can be done to use the latest version of solrcloud and solrj for a 
portal that runs on java 1.6?

I was thinking, in solrj, instead of using zookeeper (which also acts as the 
load balancer) I can mention the exact replica's http://solr-cloud-HOST:PORT 
pairs using some kind of round-robin with some external load balancer.

Any suggestion is highly appreciated.

Aswath NS



Facetting on EnumFields using JSON API (Bug?)

2016-01-07 Thread Niko Weh
Hi everyone,


I've posted in #solr and #solr-dev about this and was redirected here.

I'm having trouble with the JSON Facet API. Unsure whether it is a bug
or a usage error, but I couldn't find anything on google or the
documentation about this.

When facetting on an EnumField, i'm getting an error when using the JSON
API (but not the legacy API). For example, with a datetime field
"insertdate" and an EnumField state,

  ..&facet=on&rows=0&facet.field=state&facet.field=insertdate'

works fine.

Using the JSON API:

  json.facet={
states: {field: state}, dates: {field: insertdate}
  }

throws an error:

  "error":{
"msg":"Expected numeric field type
:state{type=auState,properties=indexed,stored,docValues}",
"code":400}

It works fine though when i drop the "states: {...}" facet.

Example Setup and full error messages:
https://gist.github.com/xou/33fd7aab7afe3cebb28b

This is with current trunk solr, but i've seen the same behaviour in
5.4.0 and,  IIRC, 5.3.

I did hack together a quick patch[1], in case this is a bug, which makes
the query work and yields the same results for my test setup with ~20k
entries as the legacy facet api (although i'm pretty new to solr, so
that patch might not achieve this in the right way). And maybe it's
usage error (in which case though, the error message could probably need
a bit improving ;))

Cheers!

Niko



[1]
http://bildungsresistenz.de/tmp.h/0001-Added-support-for-facetting-on-enum-types.patch


Re: Solrcloud for Java 1.6

2016-01-07 Thread Shawn Heisey
On 1/7/2016 3:11 PM, Aswath Srinivasan (TMS) wrote:
> I have a situation where the search front-end application is using java 1.6. 
> Upgrading Java version is out of the question.
>
> Planning to use Solrcloud 5.x version for the search implementation. The show 
> stopper here is, solrj for solrcloud needs atleast java1.7
>
> What best can be done to use the latest version of solrcloud and solrj for a 
> portal that runs on java 1.6?

The last version of Solr (and SolrJ) that supports Java 6 is 4.7.2.  I
would strongly NOT recommend using the CloudSolrServer object from SolrJ
4.7.2 with SolrCloud 5.x.  SolrCloud is evolving *very* quickly from
version to version, so different versions may not work together well. 
With the difference being a *major* version, I would not be surprised if
doesn't work at all.

> I was thinking, in solrj, instead of using zookeeper (which also acts as the 
> load balancer) I can mention the exact replica's http://solr-cloud-HOST:PORT 
> pairs using some kind of round-robin with some external load balancer.

You have two choices here, assuming you'll be using SolrJ 4.7.2.

One choice is to put a load balancer in front of your SolrCloud and use
that host in the HttpSolrServer object.  I use haproxy for a Solr load
balancer, it works very well.

The other choice is to put all of the server URLs into an instance of
LBHttpSolrServer.  I have never used this object, but this is the same
object that CloudSolrServer uses internally, so it should work.  It will
not respond as quickly to clusterstate changes as CloudSolrServer would,
because it cannot talk to Zookeeper.

Cross-version compatibility with HttpSolrServer and LBHttpSolrServer
should be very good.  It's just CloudSolrServer that doesn't work well
when you mix versions.

Thanks,
Shawn



Solr UIMA Custom Annotator PEAR file installation on Linux

2016-01-07 Thread techqnq
implemented custom annotator and generated the PEAR file.
Windos has the PEAR installer utility but how to do this from command line
or what other options on Linux OS?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-UIMA-Custom-Annotator-PEAR-file-installation-on-Linux-tp4249302.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: I cannot create replica in Solr

2016-01-07 Thread Binoy Dalal
1) Is the solrconfig.xml file actually present under /configs/contracts?
Also is it the correct one that you've uploaded?
2) Have you linked the configset to the collection?

On Fri, 8 Jan 2016, 01:40 persoy  wrote:

> 
> Actually It has. I can see configs/contracts.
> First this error is throwing
> org.apache.solr.common.SolrException: Could not load conf for core
> contracts_shard1_replica1: Error loading solr config from solrconfig.xml
> at
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
> at
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:635)
> at
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:611)
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:628)
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
> at
>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
> at
>
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
>
> After that this error is throwing
>
> org.apache.solr.common.SolrException: Error CREATEing SolrCore
> 'contracts_shard1_replica1': Unable to create core
> [contracts_shard1_replica1] Caused by: Can't find resource 'solrconfig.xml'
> in classpath or '/configs/contracts',
>
> cwd=C:\CM_10.1.0\INDEXSERVER\searchserver-distribution\target\searchserver\solr\server
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:661)
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
> at
>
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
> at
>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
> at
>
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
> at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:431)
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/I-cannot-create-replica-in-Solr-tp4248998p4249207.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
-- 
Regards,
Binoy Dalal


Re: I cannot create replica in Solr

2016-01-07 Thread Erick Erickson
Those files have nothing to do with an uploaded config!

You _should_ be seeing files like "solrconfig.xml", "schema.xml" (or
"managed_schema"), perhaps files like "stopwords.txt" and the like.
Essentially, everything that you would expect to find in the "conf"
directory for Solr. Somewhere, you must have a set of Solr config
files that are supposed to be part of your standard deployment,
"those" are the files that should be in Zookeeper in the configs node.

I have no clue how you got those files into Zookeeper, but they're
completely unknown to Solr, Solr is looking for "solrconfig.xml" and
the like.

Best,
Erick

On Thu, Jan 7, 2016 at 12:09 PM, persoy  wrote:
> 
> Actually It has. I can see configs/contracts.
> First this error is throwing
> org.apache.solr.common.SolrException: Could not load conf for core
> contracts_shard1_replica1: Error loading solr config from solrconfig.xml
> at
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:635)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:611)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:628)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
> at
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
>
> After that this error is throwing
>
> org.apache.solr.common.SolrException: Error CREATEing SolrCore
> 'contracts_shard1_replica1': Unable to create core
> [contracts_shard1_replica1] Caused by: Can't find resource 'solrconfig.xml'
> in classpath or '/configs/contracts',
> cwd=C:\CM_10.1.0\INDEXSERVER\searchserver-distribution\target\searchserver\solr\server
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:661)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:213)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
> at
> org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
> at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:431)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/I-cannot-create-replica-in-Solr-tp4248998p4249207.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: Memory Usage increases by a lot during and after optimization .

2016-01-07 Thread Zheng Lin Edwin Yeo
Hi Shawn,

I am using Java Version 8 Update 45 (build 1.8.0_45-b15). It is a 64-bit
Java.

Thank you.

Regards,
Edwin


On 8 January 2016 at 00:15, Shawn Heisey  wrote:

> On 1/7/2016 12:53 AM, Zheng Lin Edwin Yeo wrote:
> >> Subtracting SHR from RES (or in your case, Shareable from Working)
> >> reveals the actual memory being used, and I believe you can see this
> >> actual number in the Private column, which is approximately the
> >> difference between Working and Shareable.  If I'm right, this means that
> >> the actual memory usage is almost 14GB lower than Windows is reporting.
> > Does this means that sometimes when I see the high memory usage (can be
> up
> > to 100%), it is just a memory reporting error by Windows, but Solr is
> > working exactly as it should?
>
> I believe so, yes.  It should be completely impossible for Java to
> allocate more memory than you ask it to ... and I believe that Java is
> acting correctly in this regard, but the reporting is wrong.
>
> I do not know whether anything can be done about the reporting problem.
> The fact that it happens with Java on two different operating systems
> (that I know of) suggests that the problem is in Java itself.
>
> I suspect that it is related to the fact that the index files are
> accessed via MMap, and part of that virtual memory is misreported as
> shared memory.  I am subscribed to the hotspot mailing list for
> openjdk.  I don't know whether the message will be on-topic for the
> list, but I will ask about it there.  For this message I will need to
> know the precise version of Java you are using, including whether it's
> 32 or 64-bit.
>
> Thanks,
> Shawn
>
>


Manage schema.xml via Solrj?

2016-01-07 Thread Bob Lawson
I want to programmatically make changes to schema.xml using java to do it.  
Should I use Solrj to do this or is there a better way?  Can I use Solrj to 
make the rest calls that make up the schema API?  Whatever the answer, can 
anyone point me to an example showing how to do it?  Thanks!



Re: Manage schema.xml via Solrj?

2016-01-07 Thread Binoy Dalal
I am not sure about solrj but you can use any XML parsing library to
achieve this.
Take a look here:
http://www.tutorialspoint.com/java_xml/java_xml_parsers.htm

On Fri, 8 Jan 2016, 08:06 Bob Lawson  wrote:

> I want to programmatically make changes to schema.xml using java to do
> it.  Should I use Solrj to do this or is there a better way?  Can I use
> Solrj to make the rest calls that make up the schema API?  Whatever the
> answer, can anyone point me to an example showing how to do it?  Thanks!
>
> --
Regards,
Binoy Dalal


Re: Solrcloud for Java 1.6

2016-01-07 Thread billnbell
Run it on 2 separate boxes

Bill Bell
Sent from mobile


> On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) 
>  wrote:
> 
> Hi fellow developers,
> 
> I have a situation where the search front-end application is using java 1.6. 
> Upgrading Java version is out of the question.
> 
> Planning to use Solrcloud 5.x version for the search implementation. The show 
> stopper here is, solrj for solrcloud needs atleast java1.7
> 
> What best can be done to use the latest version of solrcloud and solrj for a 
> portal that runs on java 1.6?
> 
> I was thinking, in solrj, instead of using zookeeper (which also acts as the 
> load balancer) I can mention the exact replica's http://solr-cloud-HOST:PORT 
> pairs using some kind of round-robin with some external load balancer.
> 
> Any suggestion is highly appreciated.
> 
> Aswath NS
> 


Re: Manage schema.xml via Solrj?

2016-01-07 Thread Erick Erickson
I'd ask first what the high-level problem you're trying to solve is, this
could be an XY problem.

That said, there's the Schema API you can use, see:
https://cwiki.apache.org/confluence/display/solr/Schema+API

You can access it from the SolrJ library, see
SchemaRequest.java. For examples of using this, see:
SchemaTest.java

to _get_ the Solr source code to see these, see:
https://wiki.apache.org/solr/HowToContribute

Best,
Erick

On Thu, Jan 7, 2016 at 7:01 PM, Binoy Dalal  wrote:
> I am not sure about solrj but you can use any XML parsing library to
> achieve this.
> Take a look here:
> http://www.tutorialspoint.com/java_xml/java_xml_parsers.htm
>
> On Fri, 8 Jan 2016, 08:06 Bob Lawson  wrote:
>
>> I want to programmatically make changes to schema.xml using java to do
>> it.  Should I use Solrj to do this or is there a better way?  Can I use
>> Solrj to make the rest calls that make up the schema API?  Whatever the
>> answer, can anyone point me to an example showing how to do it?  Thanks!
>>
>> --
> Regards,
> Binoy Dalal


JSON Facet in SolrJ

2016-01-07 Thread Eric Dain
Is JSON Facet supported in SolrJ? If not is there a work around?

Thanks


Re: Solrcloud for Java 1.6

2016-01-07 Thread Zap Org
i have solrj5 client for 1.7 converted into 1.6 and solr instances running
with 1.7. I am connecting solrj (1.6) wit solr instances(1.7) on two
different machines

On Fri, Jan 8, 2016 at 8:26 AM,  wrote:

> Run it on 2 separate boxes
>
> Bill Bell
> Sent from mobile
>
>
> > On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) <
> aswath.sriniva...@toyota.com> wrote:
> >
> > Hi fellow developers,
> >
> > I have a situation where the search front-end application is using java
> 1.6. Upgrading Java version is out of the question.
> >
> > Planning to use Solrcloud 5.x version for the search implementation. The
> show stopper here is, solrj for solrcloud needs atleast java1.7
> >
> > What best can be done to use the latest version of solrcloud and solrj
> for a portal that runs on java 1.6?
> >
> > I was thinking, in solrj, instead of using zookeeper (which also acts as
> the load balancer) I can mention the exact replica's
> http://solr-cloud-HOST:PORT pairs using some kind of round-robin with
> some external load balancer.
> >
> > Any suggestion is highly appreciated.
> >
> > Aswath NS
> >
>


RE: Solrcloud for Java 1.6

2016-01-07 Thread Aswath Srinivasan (TMS)
Thanks for the responses guys.

>> i have solrj5 client for 1.7 converted into 1.6

Can you please explain in part with little more details?

Thank you,
Aswath NS
Mobile  +1 424 345 5340
Office+1 310 468 6729

-Original Message-
From: Zap Org [mailto:zapor...@gmail.com] 
Sent: Thursday, January 07, 2016 9:44 PM
To: solr-user@lucene.apache.org
Subject: Re: Solrcloud for Java 1.6

i have solrj5 client for 1.7 converted into 1.6 and solr instances running with 
1.7. I am connecting solrj (1.6) wit solr instances(1.7) on two different 
machines

On Fri, Jan 8, 2016 at 8:26 AM,  wrote:

> Run it on 2 separate boxes
>
> Bill Bell
> Sent from mobile
>
>
> > On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) <
> aswath.sriniva...@toyota.com> wrote:
> >
> > Hi fellow developers,
> >
> > I have a situation where the search front-end application is using 
> > java
> 1.6. Upgrading Java version is out of the question.
> >
> > Planning to use Solrcloud 5.x version for the search implementation. 
> > The
> show stopper here is, solrj for solrcloud needs atleast java1.7
> >
> > What best can be done to use the latest version of solrcloud and 
> > solrj
> for a portal that runs on java 1.6?
> >
> > I was thinking, in solrj, instead of using zookeeper (which also 
> > acts as
> the load balancer) I can mention the exact replica's 
> http://solr-cloud-HOST:PORT pairs using some kind of round-robin with 
> some external load balancer.
> >
> > Any suggestion is highly appreciated.
> >
> > Aswath NS
> >
>


RE: Solrcloud for Java 1.6

2016-01-07 Thread Aswath Srinivasan (TMS)
Thanks for the responses guys.

>> i have solrj5 client for 1.7 converted into 1.6

Can you please explain this part with little more details?

Thank you,
Aswath NS


-Original Message-
From: Aswath Srinivasan (TMS) [mailto:aswath.sriniva...@toyota.com] 
Sent: Thursday, January 07, 2016 9:51 PM
To: solr-user@lucene.apache.org
Subject: RE: Solrcloud for Java 1.6

Thanks for the responses guys.

>> i have solrj5 client for 1.7 converted into 1.6

Can you please explain in part with little more details?

Thank you,
Aswath NS

-Original Message-
From: Zap Org [mailto:zapor...@gmail.com]
Sent: Thursday, January 07, 2016 9:44 PM
To: solr-user@lucene.apache.org
Subject: Re: Solrcloud for Java 1.6

i have solrj5 client for 1.7 converted into 1.6 and solr instances running with 
1.7. I am connecting solrj (1.6) wit solr instances(1.7) on two different 
machines

On Fri, Jan 8, 2016 at 8:26 AM,  wrote:

> Run it on 2 separate boxes
>
> Bill Bell
> Sent from mobile
>
>
> > On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) <
> aswath.sriniva...@toyota.com> wrote:
> >
> > Hi fellow developers,
> >
> > I have a situation where the search front-end application is using 
> > java
> 1.6. Upgrading Java version is out of the question.
> >
> > Planning to use Solrcloud 5.x version for the search implementation. 
> > The
> show stopper here is, solrj for solrcloud needs atleast java1.7
> >
> > What best can be done to use the latest version of solrcloud and 
> > solrj
> for a portal that runs on java 1.6?
> >
> > I was thinking, in solrj, instead of using zookeeper (which also 
> > acts as
> the load balancer) I can mention the exact replica's 
> http://solr-cloud-HOST:PORT pairs using some kind of round-robin with 
> some external load balancer.
> >
> > Any suggestion is highly appreciated.
> >
> > Aswath NS
> >
>


Solr search and index rate optimization

2016-01-07 Thread Zap Org
i wanted to ask that i need to index after evey 15 min with hard commit
(real time records) and currently have 5 zookeeper instances and 2 solr
instances in one machine serving 200 users with 32GB RAM. whereas i wanted
to serve more than 10,000 users so what should be my machine specs and what
should be my architecture for this much serve rate along with index rate.
my index size is 30GB increases gradually. Thankyou in advance and i am
newbee hoping to get response


Re: Solrcloud for Java 1.6

2016-01-07 Thread Zap Org
i have solr5.0.0 installed in one machine with JVM specs java 1.7 32GB RAM
now from another machine i am sending query request to this machine with
specs JAVA 1.6
so what really happening solr5.0.0 (1.7) is communicating with
solrj5.0.0(1.6)


provide your architecture detail ill further explain it

On Fri, Jan 8, 2016 at 10:54 AM, Aswath Srinivasan (TMS) <
aswath.sriniva...@toyota.com> wrote:

> Thanks for the responses guys.
>
> >> i have solrj5 client for 1.7 converted into 1.6
>
> Can you please explain this part with little more details?
>
> Thank you,
> Aswath NS
>
>
> -Original Message-
> From: Aswath Srinivasan (TMS) [mailto:aswath.sriniva...@toyota.com]
> Sent: Thursday, January 07, 2016 9:51 PM
> To: solr-user@lucene.apache.org
> Subject: RE: Solrcloud for Java 1.6
>
> Thanks for the responses guys.
>
> >> i have solrj5 client for 1.7 converted into 1.6
>
> Can you please explain in part with little more details?
>
> Thank you,
> Aswath NS
>
> -Original Message-
> From: Zap Org [mailto:zapor...@gmail.com]
> Sent: Thursday, January 07, 2016 9:44 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solrcloud for Java 1.6
>
> i have solrj5 client for 1.7 converted into 1.6 and solr instances running
> with 1.7. I am connecting solrj (1.6) wit solr instances(1.7) on two
> different machines
>
> On Fri, Jan 8, 2016 at 8:26 AM,  wrote:
>
> > Run it on 2 separate boxes
> >
> > Bill Bell
> > Sent from mobile
> >
> >
> > > On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) <
> > aswath.sriniva...@toyota.com> wrote:
> > >
> > > Hi fellow developers,
> > >
> > > I have a situation where the search front-end application is using
> > > java
> > 1.6. Upgrading Java version is out of the question.
> > >
> > > Planning to use Solrcloud 5.x version for the search implementation.
> > > The
> > show stopper here is, solrj for solrcloud needs atleast java1.7
> > >
> > > What best can be done to use the latest version of solrcloud and
> > > solrj
> > for a portal that runs on java 1.6?
> > >
> > > I was thinking, in solrj, instead of using zookeeper (which also
> > > acts as
> > the load balancer) I can mention the exact replica's
> > http://solr-cloud-HOST:PORT pairs using some kind of round-robin with
> > some external load balancer.
> > >
> > > Any suggestion is highly appreciated.
> > >
> > > Aswath NS
> > >
> >
>


Re: Solrcloud for Java 1.6

2016-01-07 Thread Walter Underwood
You can have multiple Java versions installed on the same system. Well, the 
same non-Windows system. Use the PATH environment variable to set the right 
Java for each application.

If you really, really must run Java 1.6 for everything, you will not be running 
Solr 5.x. I think the switch to require Java 7 was made at some point in the 
4.x development.

wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/  (my blog)


> On Jan 7, 2016, at 7:26 PM, billnb...@gmail.com wrote:
> 
> Run it on 2 separate boxes
> 
> Bill Bell
> Sent from mobile
> 
> 
>> On Jan 7, 2016, at 3:11 PM, Aswath Srinivasan (TMS) 
>>  wrote:
>> 
>> Hi fellow developers,
>> 
>> I have a situation where the search front-end application is using java 1.6. 
>> Upgrading Java version is out of the question.
>> 
>> Planning to use Solrcloud 5.x version for the search implementation. The 
>> show stopper here is, solrj for solrcloud needs atleast java1.7
>> 
>> What best can be done to use the latest version of solrcloud and solrj for a 
>> portal that runs on java 1.6?
>> 
>> I was thinking, in solrj, instead of using zookeeper (which also acts as the 
>> load balancer) I can mention the exact replica's http://solr-cloud-HOST:PORT 
>> pairs using some kind of round-robin with some external load balancer.
>> 
>> Any suggestion is highly appreciated.
>> 
>> Aswath NS
>> 



Re: Solrcloud for Java 1.6

2016-01-07 Thread Shawn Heisey
On 1/7/2016 10:59 PM, Zap Org wrote:
> i have solr5.0.0 installed in one machine with JVM specs java 1.7 32GB RAM
> now from another machine i am sending query request to this machine with
> specs JAVA 1.6
> so what really happening solr5.0.0 (1.7) is communicating with
> solrj5.0.0(1.6)

The system with SolrJ 5.0.0 must have a newer Java version installed.
It is simply not possible to run Solr or SolrJ 5.0.0 with Java 6.

If you attempt to run version 4.8 or later with Java 6, you'll get an
error that looks like this:

Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/solr/xxx/yyy: Unsupported major.minor version 51.0

Here is some information about what the specific major.minor version
number means:

http://stackoverflow.com/a/11432195

Just for giggles, I attempted to compile SolrJ (which is a standalone
module not dependent on the rest of Solr) in the branch_5x checkout with
the build script changed to produce jars compatible with version 1.6.
It would not compile when the target was set to 1.6, because the way the
code is written *requires* Java 7, and has since version 4.8.

Thanks,
Shawn