Re: Copying part of index directory

2007-06-16 Thread Mike Klaas
On 15-Jun-07, at 4:25 AM, Roopesh P Raj wrote: Hi, I am new to solr, lucene. In my project I want to copy index directory based on some query (copy may not copy the whole index directory). I came across a backup script in solr/bin folder but it seems to be copying the whole index directo

Re: problems getting data into solr index

2007-06-16 Thread Mike Klaas
Hi, To diagnose this properly, you're going to have to figure out if you're dealing with encoded bytes or unicode, and what django does. See http://www.joelonsoftware.com/articles/Unicode.html. As a short-term solution, you can force things to ascii using: str(s.decode('ascii', 'ignore'))

faceted query result

2007-06-16 Thread James liu
for example. i wanna show keyword: a and facet sid: 2 my url: http://localhost:8080/solr1/select?q=a+sid:2&start=0&rows=10&fl=*&wt=json but it show me count bigger than facetnum. i read http://lucene.apache.org/java/docs/queryparsersyntax.html and try server way , all not effect. maybe some

Re: faceted query result

2007-06-16 Thread Yonik Seeley
On 6/16/07, James liu <[EMAIL PROTECTED]> wrote: i wanna show keyword: a and facet sid: 2 my url: http://localhost:8080/solr1/select?q=a+sid:2&start=0&rows=10&fl=*&wt=json but it show me count bigger than facetnum. '+' in a URL is like a space, so your query is the same as default_field:a OR

Re: faceted query result

2007-06-16 Thread James liu
thks. 2007/6/17, Yonik Seeley <[EMAIL PROTECTED]>: On 6/16/07, James liu <[EMAIL PROTECTED]> wrote: > i wanna show keyword: a and facet sid: 2 > > my url: > http://localhost:8080/solr1/select?q=a+sid:2&start=0&rows=10&fl=*&wt=json > > but it show me count bigger than facetnum. '+' in a URL is