Re: Analytics Component not working Solr-5.0

2015-02-12 Thread sumitj25
Can somebody help, has anyone used analytics component here?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Analytics-Component-not-working-Solr-5-0-tp4185666p4185977.html
Sent from the Solr - User mailing list archive at Nabble.com.


Analytics Component not working Solr-5.0

2015-02-11 Thread sumitj25
I have checked out solr git repo, and built 5.0. I am trying to use the
Analytics Component, but not getting anything in the response

q=*%3A*wt=jsonindent=trueolap=trueo.req1.s.stat1=sum(int(sales))

Why is it not working? Is any additional configuration required?

 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Analytics-Component-not-working-Solr-5-0-tp4185666.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Analytics Component not working Solr-5.0

2015-02-11 Thread sumitj25
I get normal docs response without any olap part 

{
  responseHeader:{
status:0,
QTime:1,
params:{
  o.req1.s.stat1:sum(int(salesCompleted)),
  indent:true,
  q:*:*,
  olap:true,
  wt:json}},
  response:{numFound:57,start:0,docs:[
  {
salesCompleted:3280814,
salesReturned:30331,
date:2015-02-04T18:30:00Z},
  {
salesCompleted:2258319,
salesReturned:18252,
date:2015-02-04T18:30:00Z} .}

I have compiled analytics component using 'ant clean dist' in
contrib/analytics/, which puts the jar in
dist/solr-analytics-5.0.0-SNAPSHOT.jar. I have also copied this jar to
server/solr-we solr.log
http://lucene.472066.n3.nabble.com/file/n4185683/solr.log 
bapp/webapp/WEB-INF/lib/solr-analytics-5.0.0-SNAPSHOT.jar. But I am not
getting anything in the logs as well as the response. Can the startup logs
tell if the component is loaded?

solr.log http://lucene.472066.n3.nabble.com/file/n4185683/solr.log  





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Analytics-Component-not-working-Solr-5-0-tp4185666p4185683.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Analytics Component not working Solr-5.0

2015-02-11 Thread sumitj25
I have put the jar in contrib/extraction/lib/ and now I can see it is getting
loaded

INFO  - 2015-02-11 13:36:35.484; org.apache.solr.core.SolrResourceLoader;
Adding
'file:/home/sumit/workspaces/github/lucene-solr/solr/contrib/extraction/lib/solr-analytics-5.0.0-SNAPSHOT.jar'
to classloader

But, still the query is not working. Is any additional configuration
required in solrConfig.xml? If not, why doesn't it work?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Analytics-Component-not-working-Solr-5-0-tp4185666p4185875.html
Sent from the Solr - User mailing list archive at Nabble.com.


determine amount of memory used by different solr caches

2014-11-25 Thread sumitj25
Hi,

I posted a question on stackoverflow regarding this 
http://stackoverflow.com/questions/26909948/how-to-determine-amount-of-memory-used-by-different-solr-caches
http://stackoverflow.com/questions/26909948/how-to-determine-amount-of-memory-used-by-different-solr-caches
  

Haven't received a response, so I am hoping to get the answer here. This is
the question

Solr wiki  https://wiki.apache.org/solr/SolrCaching
http://wiki.apache.org/solr/SolrCaching   states

filterCache stores unordered sets of document IDs that match the key

queryResultCache stores ordered sets of document IDs

What is the document id being referred to here? What is its size? Is it a
boolean bit vector with 1/0 for all documents present in the collection,
such that its size is equivalent to total docs * 1 bit? Mostly I am
concerned with changes in size of cache wrt number of indexed documents.

Also is there any way to get the exact size of each cache in bytes?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/determine-amount-of-memory-used-by-different-solr-caches-tp4170900.html
Sent from the Solr - User mailing list archive at Nabble.com.