Re: Sort on multiple fields not working?

2007-04-12 Thread Thierry Collogne
Yonik, The title is of type text (tokenized). I will take a look to copy this into a field that is not tokenized. Hoss, You're right. I think the time in the date might be different. I need to check this. Thank you both for the suggestions. On 12/04/07, Chris Hostetter <[EMAIL PROTECTED]> wr

Re: Results per user

2007-04-12 Thread Chris Hostetter
: > results that are filtered on a per user basis, for instance to remove : > results that have already been viewed. I know I could post process : > the results from Solr to do this, but am wondering if a better : > solution is to implement my own request handler that takes in user id : > info an

Re: Schema validator/debugger

2007-04-12 Thread Chris Hostetter
: : qt=dismax&q=solr&start=3&fq=id:[* TO *]&fq=cat:[* TO *] : : : Perhaps we should change it to something simple by default??? "q=solr"? looking back at the log, i made it something complicated to demonstrate the odd format requirements (similar to a URL ... but without URL escap

Re: Schema validator/debugger

2007-04-12 Thread Yonik Seeley
Oh wait... Andrew, were you always testing via "ping"? Check out what the ping query is configured as in solrconfig.xml: qt=dismax&q=solr&start=3&fq=id:[* TO *]&fq=cat:[* TO *] Perhaps we should change it to something simple by default??? "q=solr"? That solves the Jetty failure my

Re: filter query: comparing values between fields

2007-04-12 Thread Chris Hostetter
: You know, that's ultimately what I have done. My thinking is that doing : field comparisons could be too intensive an operation anyway. It would be hard to do if you were willing to use the FieldCache for each of the fields, a FunctionQuery could be written for it fairly easily ... but i'm sure

Re: Results per user

2007-04-12 Thread Yonik Seeley
On 4/12/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote: For a given user, I would like to submit a search and return back results that are filtered on a per user basis, for instance to remove results that have already been viewed. I know I could post process the results from Solr to do this, but

Re: Schema validator/debugger

2007-04-12 Thread Chris Hostetter
: Ahhh, are you using the dismax handler? I was using the standard : request handler with a simple query "solr" That would explain the "SolrException: undefined field text" he got using Jetty, but not the orriginal NullPointerException. that still worries me -Hoss

Results per user

2007-04-12 Thread Grant Ingersoll
Hi, For a given user, I would like to submit a search and return back results that are filtered on a per user basis, for instance to remove results that have already been viewed. I know I could post process the results from Solr to do this, but am wondering if a better solution is to imp

Re: Schema validator/debugger

2007-04-12 Thread Andrew Nagy
Ryan McKinley wrote: With a clean checkout, you can run: $ ant example $ cd example $ java -jar start.jar and things work OK. But, when you delete all but the two fields, you get an exception somewhere? Well, I was working from my own directory, not the example directory. I can give that a t

Re: Schema validator/debugger

2007-04-12 Thread Yonik Seeley
On 4/12/07, Andrew Nagy <[EMAIL PROTECTED]> wrote: Yonik Seeley wrote: > I dropped your schema.xml directly into the Solr example (using > Jetty), fired it up, and everything works fine!? Okay, I switched over to Jetty and now I get a different error: SEVERE: org.apache.solr.core.SolrException: u

Re: Schema validator/debugger

2007-04-12 Thread Ryan McKinley
With a clean checkout, you can run: $ ant example $ cd example $ java -jar start.jar and things work OK. But, when you delete all but the two fields, you get an exception somewhere? On 4/12/07, Andrew Nagy <[EMAIL PROTECTED]> wrote: Yonik Seeley wrote: > I dropped your schema.xml directly int

Re: Schema validator/debugger

2007-04-12 Thread Andrew Nagy
Yonik Seeley wrote: I dropped your schema.xml directly into the Solr example (using Jetty), fired it up, and everything works fine!? Okay, I switched over to Jetty and now I get a different error: SEVERE: org.apache.solr.core.SolrException: undefined field text Are you sure you are using the s

Re: Schema validator/debugger

2007-04-12 Thread Yonik Seeley
I dropped your schema.xml directly into the Solr example (using Jetty), fired it up, and everything works fine!? Are you sure you are using the stock solrconfig.xml, etc? -Yonik On 4/12/07, Andrew Nagy <[EMAIL PROTECTED]> wrote: So maybe I am doing something really dumb, but for testing purpos

Re: Schema validator/debugger

2007-04-12 Thread Andrew Nagy
So maybe I am doing something really dumb, but for testing purposes I took a copy of the example schema.xml file and removed all of the fields except for 2 to start with something really basic and it is throwing the nullpointerexception again. I attached the file if it is of any help I am usi

Re: Solr Scripts.conf Parsing Error

2007-04-12 Thread Bill Au
As Chris as pointed out, there may be some non-printing character(s) in your scripts.conf. Bill On 4/11/07, realw5 <[EMAIL PROTECTED]> wrote: I have not run bash -x, however I have run rsyncd-enable with -V which shows all the debug output. Here, is a snip of that. Note the "solr\r", yet in m

Re: Sort on multiple fields not working?

2007-04-12 Thread Chris Hostetter
: > q=content%3Atest;date+desc,title+asc : > : > When I try a sort just on date it works, also just on title is fine, but : > when I try to sort on both at the same time, only the sort on date is : Sorting works on indexed tokens, and hence doesn't really work on : analyzed fields that p

Re: filter query: comparing values between fields

2007-04-12 Thread George Abraham
You know, that's ultimately what I have done. My thinking is that doing field comparisons could be too intensive an operation anyway. Thanks, George On 4/11/07, Yonik Seeley <[EMAIL PROTECTED]> wrote: On 4/11/07, George Abraham <[EMAIL PROTECTED]> wrote: > I am using the DisMaxRequestHandler.

Re: listing dynamic field in search results

2007-04-12 Thread Chris Hostetter
: http://localhost:8080/q=...&fl=StaticField1,StaticField2,%22s_Dynamic+Field+1%22 : : I am guessing that Solr is parsing "s_Dynamic", "Field", and "1" as : separate fields. Does anyone know a way around this? My initial testing This is because the fl param does some pattern splitting to figure

Re: SOLR with Jetty 6.1.1

2007-04-12 Thread drigolin
I'm using with success Jetty 6.1.1 and solr. What I did was starting jetty with: java -server -jar start.jar etc/solr-jetty.xml and putting inside etc/solr-jetty.xml the JNDI activation to use a single jetty with multiple solr databases named plus-config: org.mortba

Re: Schema validator/debugger

2007-04-12 Thread Otis Gospodnetic
Re Jetty 6.1 becoming stable - it's getting there. I'm on the ML and see fewer bugs reported. They are on 6.1.2rc3 I believe. Otis - Original Message From: Yonik Seeley <[EMAIL PROTECTED]> > Then everything could work with only a JRE - AFAIK, all of the newest servlet containers ca

Re: listing dynamic field in search results

2007-04-12 Thread Kevin Osborn
The field names come from another source, most of which have spaces. So, it looks like I will have to do a conversion between the space and some other uncommon character. Does anyone know the range of valid characters for field names in the Lucene QueryParser? Obviously spaces are out of the ra

Re: listing dynamic field in search results

2007-04-12 Thread Yonik Seeley
On 4/12/07, Kevin Osborn <[EMAIL PROTECTED]> wrote: I discovered the issue. Some of my dynamic field names have spaces in them. If I replace ' ' with '_', then it works fine. This really isn't a great solution, since a '_' could be a legitimate part of the field name. Do you not have any cont

Re: listing dynamic field in search results

2007-04-12 Thread Kevin Osborn
I discovered the issue. Some of my dynamic field names have spaces in them. If I replace ' ' with '_', then it works fine. This really isn't a great solution, since a '_' could be a legitimate part of the field name. I tried enclosing the entire field name with quotes, so the query is: http://l

Re: Sort on multiple fields not working?

2007-04-12 Thread Yonik Seeley
On 4/12/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: Hello, I am trying to do a searchquery with sorting on multiple files, but I can't get it to work. I want to search first on a date, and if results have the same date, I want them sorted by title. This is my query : q=content%3At

Sort on multiple fields not working?

2007-04-12 Thread Thierry Collogne
Hello, I am trying to do a searchquery with sorting on multiple files, but I can't get it to work. I want to search first on a date, and if results have the same date, I want them sorted by title. This is my query : q=content%3Atest;date+desc,title+asc When I try a sort just on date it