Re: Sorting on tokenized fields

2008-01-08 Thread Michael Prichard
yes, no worries. i just check in advance what fields are available and build the Sort object accordingly. Eventually BCC would be there...but not necessary so at first. Anyway, got it to work! Thanks for your help. All the best, Michael On Jan 8, 2008, at 4:37 PM, Doron Cohen wrote: H

Re: Sorting on tokenized fields

2008-01-08 Thread Doron Cohen
Hi Michael, I think you mean the exception thrown when you search and sort with a field that was not yet indexed: RuntimeException: field "BBC" does not appear to be indexed I think the current behavior is correct, otherwise an application might (by a bug) attempt to sort by a wrong field, th

Re: Sorting on tokenized fields

2008-01-08 Thread Ryan McKinley
my mistake, I thought I was looking at the solr mailing list ;) If you change your analyzer, it does not change the tokens that are already in the index -- you will need to re-index for any changes to take effect. ryan Michael Prichard wrote: Meaning that it says "field is not indexed". Wh

Re: Sorting on tokenized fields

2008-01-08 Thread Michael Prichard
Meaning that it says "field is not indexed". Where is sortMissingLastAttribute? thanks. On Jan 8, 2008, at 4:13 PM, Ryan McKinley wrote: what do you mean by "fail"? -- there is the sortMissingLast attribute Michael Prichard wrote: ok... i should read the manual more often. i went ahead a

Re: Sorting on tokenized fields

2008-01-08 Thread Ryan McKinley
what do you mean by "fail"? -- there is the sortMissingLast attribute Michael Prichard wrote: ok... i should read the manual more often. i went ahead and just added untokenized, unstored sort fields question, if I put a field in to sort of but say I have not indexed any as of yet...will

Re: Sorting on tokenized fields

2008-01-08 Thread Michael Prichard
ok... i should read the manual more often. i went ahead and just added untokenized, unstored sort fields question, if I put a field in to sort of but say I have not indexed any as of yet...will the Sort fail? For example, say I have a BCC field and nothing has been indexed with that yet