Re: shards parameter

2009-12-18 Thread pcurila

My goal is to hide configuration from client application. So when I
distribute index, application does not know this.
I added new search handler and it works fine. Thanks to everybody


Jacob Elder-4 wrote:
 
 If the goal is to save time when using the admin interface, you can just
 add
 this to conf/admin-extra.html:
 
 script src=http://www.google.com/jsapi;/script
 script
 google.load(prototype, 1.6);
 /script
 script type=text/javascript
 Event.observe(
 window,
 'load',
 function() {
 elements = document.getElementsByName('queryForm')
 elements[0].insert(input name=\shards\
 value=\shard01,shard02\)
 });
 /script
 
 You will get an editable field with sensible defaults under the query box.
 
 On Thu, Dec 17, 2009 at 4:09 PM, Yonik Seeley
 yo...@lucidimagination.comwrote:
 
 You're setting up an infinite loop by adding a shards parameter on the
 default search handler.
 Create a new search handler and put your default under that.

 -Yonik
 http://www.lucidimagination.com


 On Thu, Dec 17, 2009 at 7:47 AM, pcurila p...@eea.sk wrote:
 
  I tried it out. But there is another issue I can not cope with.
  I have two shards:
  localhost:8983/solr
  localhost:8984/solr
 
  If I write this into the defaults section
  str name=shardslocalhost:8983/solr,localhost:8984/solr/str
  and than I issue a query on localhost:8983, solr do not respond.
 
  If I write this
  str name=shardslocalhost:8984/solr/str
  it works but there is just half of the index.
 
 
 
 
  Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
 
  yes.
  put it under the defaults section in your standard requesthandler.
 
  On Thu, Dec 17, 2009 at 5:22 PM, pcurila p...@eea.sk wrote:
 
  Hello, is there any way to configure shards parameter in
 solrconfig.xml?
  So I
  do not need provide it in the url. Thanks Peter
  --
  View this message in context:
  http://old.nabble.com/shards-parameter-tp26826908p26826908.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 
 
 
  --
  -
  Noble Paul | Systems Architect| AOL | http://aol.com
 
 
 
  --
  View this message in context:
 http://old.nabble.com/shards-parameter-tp26826908p26827527.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 
 

 
 
 
 -- 
 Jacob Elder
 
 

-- 
View this message in context: 
http://old.nabble.com/shards-parameter-tp26826908p26843690.html
Sent from the Solr - User mailing list archive at Nabble.com.



shards parameter

2009-12-17 Thread pcurila

Hello, is there any way to configure shards parameter in solrconfig.xml? So I
do not need provide it in the url. Thanks Peter
-- 
View this message in context: 
http://old.nabble.com/shards-parameter-tp26826908p26826908.html
Sent from the Solr - User mailing list archive at Nabble.com.



why is query so slow

2009-03-17 Thread pcurila

hello,

I created index with 1.5m docs. When I am post query without facets it
returns in a moment.
When I post query with one facets it takes 14s.

lst name=responseHeader
int name=status0/int
int name=QTime14263/int
−
lst name=params
str name=facettrue/str
str name=indenton/str
str name=facet.mincount1/str
str name=start0/str
str name=qzamok
/str
str name=facet.limit-1/str
str name=facet.fieldwasCreatedBy_fct/str
str name=rows10/str
str name=version2.2/str
/lst
/lst
result name=response numFound=16055 start=0


when I add filter that returns only one docs it takes same time


lst name=responseHeader
int name=status0/int
int name=QTime13249/int
−
lst name=params
str name=facettrue/str
str name=indenton/str
str name=facet.mincount1/str
str name=start0/str
str name=qzamok
/str
str name=facet.limit-1/str
str name=facet.fieldwasCreatedBy_fct/str
str name=fqwasCreatedBy_fct=Martin Benka/str
str name=rows10/str
str name=version2.2/str
/lst
/lst
−
result name=response numFound=1 start=0

Why?
Can anybody explain me what am I doing wrong and how to speed up response
time.

Peter
-- 
View this message in context: 
http://www.nabble.com/why-is-query-so-slow-tp22554340p22554340.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: why is query so slow

2009-03-17 Thread pcurila

I am using 1.3

 How many terms are in the wasCreatedBy_fct field?   How is that field  
 and its type configured? 
field contains author names and there are lots of them. 

here is type configuration:

fieldType name=facet class=solr.TextField positionIncrementGap=100
analyzer
tokenizer class=solr.KeywordTokenizerFactory/
/analyzer
/fieldType

field name=wasCreatedBy_fct type=facet indexed=true stored=true
multiValued=true/




-- 
View this message in context: 
http://www.nabble.com/why-is-query-so-slow-tp22554340p22555842.html
Sent from the Solr - User mailing list archive at Nabble.com.