SolrCloud - CompositeId Document Routing Problem

2014-03-17 Thread saurish
Hi,I am testing the solrcloud's compositeId routing but failing to get
documents pertaining to a route. PFB the steps for the same. pls point where
i am making mistake in the configuration or let me know if i have to do
something more 
I'm using zookeeper 3.4.5 and two tomcat 7 server instances with Solr 4.5. 

*Configured tomcat1,tomcat2 instances with solr home directories solr-home1
, solr-home2 respectively.Also copied solr config files to folder
/Users/solrconfig-files * 
*Uploaded Solr Configuration into Zookeeper ensemble :*
java -classpath .:/Users/solr-cli-lib/* org.apache.solr.cloud.ZkCLI -cmd
upconfig -zkhost localhost:2181 -confdir /Users/solrconfig-files -confname
myconf
java -classpath .:/Users/solr-cli-lib/* org.apache.solr.cloud.ZkCLI -cmd
linkconfig -collection collection1 -confname myconf -zkhost localhost:2181
 
*Deployed SolrCloud in Tomcat 7 :
placed below params in setenv.sh in both tomcats servers on different
machines.* 
SOLR_OPTS="-Dsolr.solr.home=/Users/solr-home1 -Dport=8080 -DhostContext=solr
-DzkClientTimeout=2 -DzkHost=localhost:2181" 
(Note:- used the approprizate -DzkHost to point to the first node when
tomcat on second node starts)
JAVA_OPTS="$JAVA_OPTS $SOLR_OPTS"
 *Created solr.xml , placed in solr-home1 and solr-home2 content as below,*



*Creating Collection, shards and replicas, Using curl created collection *
/curl
'http://localhost:8080/solr/admin/collections?action=CREATE&name=collection1&router.name=compositeId&router.Id=id&numShards=2&replicationFactor=2&maxShardsPerNode=2'
/ 
*Created a collection collection1 with two shards with replicator 2 *
/curl
'http://localhost:8080/solr/admin/cores?action=CREATE&name=shard1-replica-1&collection=collection1&shard=shard1'/
/curl
'http://X.X.X.X:8080/solr/admin/cores?action=CREATE&name=shard1-replica-2&collection=collection1&shard=shard1'/
 
curl
'http://localhost:8080/solr/admin/cores?action=CREATE&name=shard2-replica-1&collection=collection1&shard=shard2'curl
'http://x.x.x.x:8080/solr/admin/cores?action=CREATE&name=shard2-replica-2&collection=collection1&shard=shard2'
 

*Indexed few docs using curl as below ,*
curl http://localhost:8080/solr/update -H "Content-Type: text/xml"
--data-binary 'Sports!1234football'
 
curl http://localhost:8080/solr/update -H "Content-Type: text/xml"
--data-binary 'Movies!4321The.Shawshank.Redemption' 
*I am querying using the below syntax:*
/http://localhost:8080/solr/collection/select?q=*:*&_route_=Sports!&wt=json&indent=true/
/http://localhost:8080/solr/collection/select?q=*:*&_route_=Movies!&wt=json&indent=true/
 

On both the ocassions,  i end up results of "Sports" route only. If i given
_route_ paramter with any other name, still the results of "Sports" are
thrown up.
Can you pls point where am i making mistake?Regards



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrCloud-CompositeId-Document-Routing-Problem-tp4124715.html
Sent from the Solr - User mailing list archive at Nabble.com.

java.lang.NoClassDefFoundError: org/carrot2/core/ControllerFactory

2014-01-23 Thread saurish

Hi,
I am new to solr and successfully did a basic search. Now i am trying to do
classification of the search results using carrrot's support which comes
with solr 4.5.1. Would appreciate if someone tells me what is that i am
missing...may be a trivial issue??!!!

I am getting the below error..*java.lang.NoClassDefFoundError:
org/carrot2/core/ControllerFactory*. I know this error might be because of
carrot2 classes not getting loaded. But if you look below the jars in the
"../contrib/clustering/lib" directory are being loaded. but still i am
getting the error. what might be the reason?

I am working with Solr 4.5.1 on tomcat 7.0.47.




INFO  - 2014-01-23 16:02:50.865; org.apache.solr.core.CorePropertiesLocator;
Looking for core definitions underneath D:\Work\x\solr
INFO  - 2014-01-23 16:02:51.288; org.apache.solr.core.CorePropertiesLocator;
Found core collection1 in D:\Work\x\solr\collection1\
INFO  - 2014-01-23 16:02:51.911; org.apache.solr.core.CorePropertiesLocator;
Found 1 core definitions
INFO  - 2014-01-23 16:02:51.916; org.apache.solr.core.CoreContainer;
Creating SolrCore 'collection1' using instanceDir:
D:\Work\x\solr\collection1
INFO  - 2014-01-23 16:02:51.918; org.apache.solr.core.SolrResourceLoader;
new SolrResourceLoader for directory: 'D:\Work\x\solr\collection1\'

* Look at the librarries being loaded* 

INFO  - 2014-01-23 16:02:52.408; org.apache.solr.core.SolrConfig; Adding
specified lib dirs to ClassLoader
INFO  - 2014-01-23 16:02:52.482; org.apache.solr.core.SolrResourceLoader; 

* INFO  - 2014-01-23 16:02:52.634; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/D:/Work/x/solr/contrib/clustering/lib/attributes-binder-1.2.0.jar'
to classloader
INFO  - 2014-01-23 16:02:52.637; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/D:/Work/x/solr/contrib/clustering/lib/carrot2-mini-3.8.0.jar' to
classloader
INFO  - 2014-01-23 16:02:52.639; org.apache.solr.core.SolrResourceLoader;
Adding 'file:/D:/Work/x/solr/contrib/clustering/lib/hppc-0.5.2.jar' to
classloader
INFO  - 2014-01-23 16:02:52.642; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/D:/Work/x/solr/contrib/clustering/lib/jackson-core-asl-1.7.4.jar'
to classloader
INFO  - 2014-01-23 16:02:52.644; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/D:/Work/x/solr/contrib/clustering/lib/jackson-mapper-asl-1.7.4.jar'
to classloader
INFO  - 2014-01-23 16:02:52.645; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/D:/Work/x/solr/contrib/clustering/lib/mahout-collections-1.0.jar'
to classloader
INFO  - 2014-01-23 16:02:52.649; org.apache.solr.core.SolrResourceLoader;
Adding 'file:/D:/Work/x/solr/contrib/clustering/lib/mahout-math-0.6.jar'
to classloader
INFO  - 2014-01-23 16:02:52.653; org.apache.solr.core.SolrResourceLoader;
Adding 'file:/D:/Work/x/solr/contrib/clustering/lib/simple-xml-2.7.jar'
to classloader
INFO  - 2014-01-23 16:02:52.660; org.apache.solr.core.SolrResourceLoader;
Adding 'file:/D:/Work/x/solr/dist/solr-clustering-4.5.1.jar' to
classloader  
INFO  - 2014-01-23 16:02:52.664; org.apache.solr.core.SolrResourceLoader;* 
Adding 'file:/D:/Work/x/solr/contrib/langid/lib/jsonic-1.2.7.jar' to
classloader
INFO  - 2014-01-23 16:02:52.665; org.apache.solr.core.SolrResourceLoader; 
INFO  - 2014-01-23 16:02:58.237; org.apache.solr.core.SolrConfig; Loaded
SolrConfig: solrconfig.xml
INFO  - 2014-01-23 16:02:58.430; org.apache.solr.schema.IndexSchema; Reading
Solr Schema from schema.xml
INFO  - 2014-01-23 16:02:58.762; org.apache.solr.schema.IndexSchema;
[collection1] Schema name=nutch
INFO  - 2014-01-23 16:03:02.138; org.apache.solr.schema.IndexSchema; default
search field in schema is text
INFO  - 2014-01-23 16:03:02.141; org.apache.solr.schema.IndexSchema; query
parser default operator is OR
INFO  - 2014-01-23 16:03:02.145; org.apache.solr.schema.IndexSchema; unique
key field: url
INFO  - 2014-01-23 16:03:03.765; org.apache.solr.core.SolrCore;
solr.NRTCachingDirectoryFactory
INFO  - 2014-01-23 16:03:03.797; org.apache.solr.core.SolrCore;
[collection1] Opening new SolrCore at D:\Work\x\solr\collection1\,
dataDir=D:/Work/x/solr/data\
INFO  - 2014-01-23 16:03:03.936; org.apache.solr.core.JmxMonitoredMap; JMX
monitoring is enabled. Adding Solr mbeans to JMX Server:
com.sun.jmx.mbeanserver.JmxMBeanServer@2a5ab9
INFO  - 2014-01-23 16:03:04.461; org.apache.solr.core.SolrCore;
[collection1] Added SolrEventListener for newSearcher:
org.apache.solr.core.QuerySenderListener{queries=[]}
INFO  - 2014-01-23 16:03:04.464; org.apache.solr.core.SolrCore;
[collection1] Added SolrEventListener for firstSearcher:
org.apache.solr.core.QuerySenderListener{queries=[{q=static firstSearcher
warming in solrconfig.xml}]}
INFO  - 2014-01-23 16:03:04.699;
org.apache.solr.core.CachingDirectoryFactory; return new directory for
D:\Work\x\solr\data
INFO  - 2014-01-23 16:03:04.700; org.apache.solr.core.SolrCore; New index
directory detected: old=null new=D:/Work/x/solr/data\in

Re: Fwd: Search Engine Framework decision

2014-01-27 Thread saurish
Hi,

Looks like there is support for Sharepoint as well as Windows Share in
ManifoldCF. 

Yes, You can craw folders with Nutch (Atleast i have worked on a windows pc
with a local file folder).

Nutch 1.7 and Solr 4.5.1 have worked for me.

Regards,



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Fwd-Search-Engine-Framework-decision-tp4113584p4113677.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: java.lang.NoClassDefFoundError: org/carrot2/core/ControllerFactory

2014-01-27 Thread saurish
Thanks Shawn. Appreciate it.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/java-lang-NoClassDefFoundError-org-carrot2-core-ControllerFactory-tp4112967p4113683.html
Sent from the Solr - User mailing list archive at Nabble.com.