Hi Terry, Could you send along you changes so I can integrate them back in.
Thanks --Peter On 7/5/02 6:14 AM, "Terry Steichen" <[EMAIL PROTECTED]> wrote: > Peter, > > The main problem was that I was unfamiliar with the way you used static > methods and members. Once I got my head around that, it wasn't hard to get > things working. I fixed a couple of minor bugs, got rid of some surplus > methods, and added the ability to change the sorting order. Seems to work > fine now. Thanks for the help (and the code, of course). > > Regards, > > Terry > > > ----- Original Message ----- > From: "Peter Carlson" <[EMAIL PROTECTED]> > To: "Lucene Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, July 03, 2002 11:29 AM > Subject: Re: SearchBean Persistence > > >> Hi Terry, >> >> The way I was hoping it would work is to call static method >> >> SortedField.addField([field name],[indexPath]); >> >> In a init servlet at startup (there is a sample servlet in the servelet >> directory of the SearchBean contribution). >> >> Then we you want to sort by that field call the static method >> >> SortedField.getSortedField([fieldName]) >> >> Which will return the precreated sorted field if it exists. >> >> Again, I'm sorry I didn't yet have time to fully test this, but this is > the >> way it SHOULD work. If it doesn't work that way please let me know and > I'll >> look at it. >> >> --Peter >> >> >> >> >> On 7/3/02 7:22 AM, "Terry Steichen" <[EMAIL PROTECTED]> wrote: >> >>> I'm using Peter's SearchBean code to sort search results. It works > fine, but >>> it creates the sorting field array from scratch with every invocation > (which >>> takes on the order of a second or so to complete - each search itself > takes >>> about one tenth of that or less). While I can conduct several searches > in the >>> same module, I can't figure out how to persist the sorting field array > between >>> invocations of the search module. >>> >>> Any advice on how to do this would be much appreciated. >>> >>> Regards, >>> >>> Terry >>> >>> >> >> >> -- >> To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >> >> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>