RE: Computing an md5 of a text field.

2007-07-23 Thread Daniel Pitts
XML escaping is probably the best approach. Either surround the whole thing with "<[CDATA[" and "]]>", or do use one of the many libraries out there that will escape the string for you. While an MD5 is designed to be cryptographically secure one way function, it is NOT guaranteed to be a one-to-o

RE: Filtering using data only available at query time

2007-08-27 Thread Daniel Pitts
Can you add some fields that let set a filter or query that weed out the results that the user doesn't have access too? If its as simple as Admin versus User, you could have a boolean field called AdminOnly, and when a User is querying, add a fq=[* TO *] -AdminOnly:true You could get more specifi

RE: Filtering using data only available at query time

2007-08-27 Thread Daniel Pitts
x27;t told > about changes in user permissions (e.g. > demotion from administrative to ordinary user), and even if > it were I'd hate to have to reindex everything just to > reflect that change. > > Jon > > > -Original Message- > > From: Daniel Pitts [m

RE: Filtering using data only available at query time

2007-08-27 Thread Daniel Pitts
t; > > -----Original Message- > > From: Daniel Pitts [mailto:[EMAIL PROTECTED] > > Sent: 27 August 2007 19:07 > > To: solr-user@lucene.apache.org > > Subject: RE: Filtering using data only available at query time > > > > I think you're missing my point. &

RE: Forced Top Document

2007-10-24 Thread Daniel Pitts
I'm going to be doing something similar, and I don't think I'll be sorting by score (although, that might be feasible). In my use-case though, we don't want to include something unless it is already matched by our filters. I'll probably end up just making two search hits, but it would be nice if

RE: Solr logo poll

2007-04-06 Thread Daniel Pitts
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Yonik Seeley > Sent: Friday, April 06, 2007 10:52 AM > To: solr-user@lucene.apache.org > Subject: Solr logo poll > > Quick poll... Solr 2.1 release planning is underway, and a > new logo may be a pa

RE: Solr Query Language

2007-04-16 Thread Daniel Pitts
It looks like (from the exception) that you missed a space. Perhaps your actual query was constructed like: String query = "width:[" + lowWidth + " TO" + highWidth +"]"; Where you *wanted* String query = "width:[" + lowWidth + " TO " + highWidth +"]"; > -Original Message- > From: Jack L [

RE: Heap Out of Memory Error

2007-05-22 Thread Daniel Pitts
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 22, 2007 12:31 PM > > Hi, > > I am running Solr within the Jetty using start.jar. I am > indexing about 200,000 documents. Sometimes out of the blue, > the Solr instance cannot process any more