Re: begins with searches

2009-10-26 Thread Gerald Snyder
Are you using the field name suffixes like Blacklight?xxx_text, 
_xxx_facet, xxx_string?   With the xxx_string field you can request 
begins with search, but you may need some different search term 
normalization than with a _text search. 



Gerald Snyder
Florida Center for Library Automation


Bernadette Houghton wrote:

We need to offer begins with type searches, e.g. a search for surname, f will retrieve surname, 
firstname, surname, f, surname fm etc.

Ideally, the user would be able to enter something like surname f*.

However, wildcards don't work on phrase searches, nor do range searches.

Any suggestions as to how best to search for begins with phrases; or, how to 
best configure solr to support such searches?

TIA
Bernadette Houghton, Library Business Applications Developer
Deakin University Geelong Victoria 3217 Australia.
Phone: 03 5227 8230 International: +61 3 5227 8230
Fax: 03 5227 8000 International: +61 3 5227 8000
MSN: bern_hough...@hotmail.com
Email: 
bernadette.hough...@deakin.edu.aumailto:bernadette.hough...@deakin.edu.au
Website: http://www.deakin.edu.au
http://www.deakin.edu.au/Deakin University CRICOS Provider Code 00113B (Vic)

Important Notice: The contents of this email are intended solely for the named 
addressee and are confidential; any unauthorised use, reproduction or storage 
of the contents is expressly prohibited. If you have received this email in 
error, please delete it and any attachments immediately and advise the sender 
by return email or telephone.
Deakin University does not warrant that this email and any attachments are 
error or virus free


  


Re: FACET_SORT_INDEX descending?

2009-10-14 Thread Gerald Snyder

Thanks for the answer and the alternative idea.--Gerald


Chris Hostetter wrote:

: Reverse alphabetical ordering.   The option index provides alphabetical
: ordering. 

be careful: index doesn't mean alphabetical -- it means the natural 
ordering of terms as they exist in the index. for non ascii characters 
this is not neccessarily something that could be considered alphabetical 
(or sensical in terms of the locale).


The short answer is: no, there is no way to get reverse index order at 
the moment.


: I have a year_facet field, that I would like to display in reverse order (most
: recent years first).  Perhaps there is some other way to accomplish this.

the simplest way is to encode the year in some format thta will cause it 
to naturally sort in the order you want - so instead of indexing 1976 
and 2007 you could index 8024:1976 and 7993:2007 and then only 
display the part that comes after the :




-Hoss


  


Re: FACET_SORT_INDEX descending?

2009-10-06 Thread Gerald Snyder
Reverse alphabetical ordering.   The option index provides 
alphabetical ordering. 

I have a year_facet field, that I would like to display in reverse order 
(most recent years first).  Perhaps there is some other way to 
accomplish this.


Thanks.
--Gerald


Chris Hostetter wrote:

: Is there any value for the f.my_year_facet.facet.sort  parameter that will
: return the facet values in descending order?   So far I only see index and
: count as the choices. 


descending what?

(count is descending order by count)



-Hoss