I have a book catalogue site, and the book doctype has a field for ISBN number.
I'd like editors to be able to type an ISBN number into the search box in the back-office, and have it show the matching product (to enable them to easily find a particular book to edit).
I've added my "isbn" field to the IndexUserFields section in the InternalIndexSet in ExamineIndex.config, and I've checked with Luke, and it's indexing the "isbn" field for books.
However, if I type an ISBN number into the search box, it doesn't return anything.
From looking at the source code... if you add a '*' as first char in the search criteria, follewed by the isbn, then umbraco will search in all fields! Haven't tried it tho...
Hmm, even worse, it's throwing exceptions when trying to use wildchars... (just tried that on a live site with elmah configured) Defo not the way to go me thinks. Guess you'll need to revert to using a dashboard control.
How to make back-office search for custom fields?
I have a book catalogue site, and the book doctype has a field for ISBN number.
I'd like editors to be able to type an ISBN number into the search box in the back-office, and have it show the matching product (to enable them to easily find a particular book to edit).
I've added my "isbn" field to the IndexUserFields section in the InternalIndexSet in ExamineIndex.config, and I've checked with Luke, and it's indexing the "isbn" field for books.
However, if I type an ISBN number into the search box, it doesn't return anything.
Any ideas?
Mike,
From looking at the source code... if you add a '*' as first char in the search criteria, follewed by the isbn, then umbraco will search in all fields! Haven't tried it tho...
Cheers,
/Dirk
Hmm. No joy, I don't think - either that, or is *desperately* slow. Is just sitting there spinning away...
Seems like an ideal candidate for a config file to me... didn't really want to have to build a custom dashboard control...
Thanks anyway!
Mike
Hmm, even worse, it's throwing exceptions when trying to use wildchars... (just tried that on a live site with elmah configured) Defo not the way to go me thinks. Guess you'll need to revert to using a dashboard control.
Cheers,
/Dirk
is working on a reply...