sorry to be a numptie but can someone tell me how I change my results sort
mechanism?
It currently gives back the results ordered by highest ID first, which
relates to last item entered or edited.
I'd like it to sort alpha on the Title field instead.
I'm using solr 1.1 and the example solr inst
I found another post that suggested editing the unlockonstartup value in
solrconfig.xml.
Is that a wise idea?
I'm attaching my .xml config file as well as it might shed some light on the
matter
http://www.nabble.com/file/p12735259/solrconfig.xml solrconfig.xml
--
View this message in contex
Hello everyone.
I've been reading some posts on this forum and I thought it best to start my
own post as our situation is different from evveryone elses, isn't it always
:-)
We've got a django powered website that has solr as it's search engine.
We're using the example solr application and star
roopesh, thank you very much
roopesh-2 wrote:
>
> This should work :
> c.deleteByQyery('id:[* TO *]')
> c.commit()
>
> Regards
> Roopesh
>
> vanderkerkoff wrote:
>> Hello everyone
>>
>> Loving solr, got an idiot question for you.
>
Hello everyone
Loving solr, got an idiot question for you.
I have been manually deleting our index in the python interpretor when
testing
from solr import SolrConnection
c = SolrConnection(host='localhost:8983', persistent=False)
allgone = '[ * : * ]'
c.deleteByQuery(query=allgone)
c.commit(opt
I/my boss and me worked it out.
The delete funtion in solr.py looks like this
def delete(self, id):
xstr = ''+self.escapeVal(`id`)+''
return self.doUpdateXML(xstr)
As we're not passing an integer it get's all c*nty booby, technical term.
So if I rewrite the delete to be like this
def
ok, I'm now printing out the xstr variable that the delete in solr.py uses
when it's trying to delete.
it's coming out like this
'news:39'
Those quotes look suspicious
Going to work out how to switch more debugging on in solr now so I can see
what's going on exactly
--
View this message in con
Different tactic now
adding like this
idstring = "news:%s"; % self.id
c.add(id=idstring,url_t=e_url,body_t=body4solr,title_t=title4solr,summary_t=summary4solr,contact_name_t=contactname4solr)
c.commit(optimize=True)
Goes in fine, search results show an ID of news:36
Delete like this
delidstri
Done some more digging about this
here's my delete code
def delete(self):
from solr import SolrConnection
c = SolrConnection(host='localhost:8983', persistent=False)
e_url = '/news/' + self.created_at.strftime("%Y/%m/%d") + '/' +
self.slug
e_url = e_url.encode('as
Hello everyone
We're adding records to our 1.1 index through django and python like so,
using the jetty app.
This is in the save definition.
from solr import SolrConnection
c = SolrConnection(host='localhost:8983', persistent=False)
c.add(id=e_url,url_t=e_url,body_t=body4solr,title_t=title4solr,
Hi Mike, Brian
Thanks for helping with this, and for clearing up my misunderstanding. Solr
the python module and Solr the package being two different things, I've got
you.
The issues I have are compounded by the fact that we're hovering between
using the Unicode branch of Django and the older b
Hello Mike, Brian
My brain is approcahing saturation point and I'm reading these two opinoins
as opposing each other.
I'm sure I'm reading it incorrectly, but they seem to contradict each other.
Are they?
Brian Whitman wrote:
>
> Solr has no problems with proper utf8 and you don't need to do
27;s no errors that I can see, and the data is definately in the index as
I can now search for it.
vanderkerkoff wrote:
>
>
> 2 little things, I'm getting an error when it's trying to optimise the
> index
>
> AttributeError: SolrConnection instance has no attribute
Cheesr Mike, read the page, it's starting to get into my brian now.
Django was giving me unicode string, so I did some encoding and decoding and
now the data is getting into solr, and it's simply not passing the
characters that are cuasing problems, which is great.
I'm going to follow the same s
Hi Mike
The characters that are giving us problems are the old favourites of
apostrophe's and quotes pasted from Microsoft Word into a Django Web Site.
I'm not using django's newforms yet, but still using the old ones.
Any help or tips or sending me off to sites to read stuff Mike I'll be
gratefu
Hi Brian
I've now set the mysqldb to be default charset utf8, and everything else is
utf8. collation etc etc.
I think I know what the problem is, and it's a really old one and I feel
foolish now for not realising it earlier.
Our content people are copying and pasting sh*t from word into the co
Hi Yonik
Here's the output from netcat
POST /solr/update HTTP/1.1
Host: localhost:8983
Accept-Encoding: identity
Content-Length: 83
Content-Type: text/xml; charset=utf-8
that looks Ok to me, but I am a bit twp you see.
:-)
Yonik Seeley wrote:
>
> On 6/13/07, vanderkerkoff <[E
Hello Hoss
Thanks for replying, I tried what you suggested as the iniital step of my
troubleshooting and it outputs it fine.
It was what I suspected initially as well, but thanks for the advice.
hossman_lucene wrote:
>
>
> : I'm running solr1.2 and Jetty, I'm having problems looping through
Hello everyone
I'm running solr1.2 and Jetty, I'm having problems looping through a mysql
database with python and putting the data into the solr index.
Here's the error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 369:
ordinal not in range(128)
I think that means that
19 matches
Mail list logo