|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Hello All, From time to time I want to search content within Umbraco. Something along the lines of: PageTitle contains 'umbraco' and publishDate after '10-01-2008' and publishState = 'published' I think this is quite a nice candidate for a package. I just wanted to post here and make sure there isn't some obvious way to do this that I am missing. The idea comes about as I'd like to search for all blog comments as I've got quite a bit of comment spam to get rid of. D.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
Rank: Newbie
Joined: 7/5/2007 Posts: 21
|
Hi Darren, Have you seen this : http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/Implementing_Search, although if you only want the specific query of searching if a title attribute contains 'search term' and publish date greater than.... a simplier xslt macro may suit your needs. HTH, Hendy.
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Thanks, Perhaps I need to be a little clearer. I want the search to happen in the Umbraco GUI, and I want to be able to determine which properties are searched on a 'per search basis'. I'd also like to combine my search criteria with logical operators (AND, OR, NOT). So I could do: publishDate > '10-01-2008' and publishDate < '21-05-2008' and (not title contains 'umbraco') I'm thinking Lucene may have a role to play. Thanks.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 593 Location: Preston, UK
|
Darren, Collar me at codegarden we could probably take the advanced search that i have and plug it into umbraco ui as dashboard control (wow that is cool unexpected usage of search). Will need to update the index searched ( the published and non published are stored in different indexes ) see the form i have made it front end umbraco but we could hack it to make it back end. The great thing with this is you just put the fields in and use the naming convention and add some hidden fields which are the modifiers and when you submit you get a query already built for you. Have a play with the form. If i have time i may have a stab at creating the dashboard control then all thats needed is some kind of logger to tell us which params searched how many times. I do think we need a richer back end search for content something like tridion has : Title Author Document type Date range etc etc etc In fact Darren im thinking if it will meet the criteria for the package competition we should have a go. Although not sure how we would share an xbox360 Regards Ismail
Level 2 certified. If it aint broke dont fix.
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Ismail, Sounds great. Let's spend some time having a chat about this. It's something that would be very useful for large content stores. I guess we'd need to give some thought about how to link back and forth between your search results and the content nodes that it returned. What would be really cool would be if the search app defaulted to your most recent query and possibly gave you the ability to save searches (or at least have a history of your last 5-10 searches). Also, I'd like to be able to dynamically add and remove search criteria, so I could match 1 field or 5 fields depending on how specific i wanted to be with my search. Maybe i'll have a play and see how that could be done. Not sure I'd ever use a xbox 360 - I have a wii and a PS3 that just sit and gather dust at the moment :)
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Here is a kind of example of what i mean: http://aspnet.asp101.com/samples/form_dynamic.aspxBut each row would have three fields: Property - Select, comparison- Select, Value - Text Property would just be a list of Umbraco document properties. Comparison would have values like: equal, not equal, contains, greater than, less than etc etc. D.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 593 Location: Preston, UK
|
Darren,
Saving search results is cool idea seen it with tridion you create your own custom search and then you can save that as custom folder which effectively makes a call to the saved query.
With regards to dynamic thing that could get a bit hairy especially if you have a whole load of fields what would be easier although not as slick is to use the form link for apache and any fields etc you need you add them and we have the modifier as per the file format drop down?
If you ping me via msn (link in bottom of post ) i can send u link to some working dev stuff i have it will give you better idea of how the advanced search works.
Im excited about this i think for really big sites it would get great for content authors to get to their stuff easily.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
where is your msn? I think starting simple and building in the complexity at a later stage is always the way forward. I'm df at darren hyphen ferguson dot com if you want to add me. I've been modelling my ideas around TeamSite search which is rather good.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 593 Location: Preston, UK
|
Darren,
The msn link is on all my replies the image MSN if you click on that you get to send me an email and i can reply. Beats those damn bots and spammers!
Anyhow i got your email and have added you on my msn umbraco list. Well have a quick chat when you are next on.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Nice one. I am only really on in the evenings, no access from the day office :( Talk soon.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 593 Location: Preston, UK
|
Darren,
One thing I have just discovered is the internal index does not store the documentype so cannot add Document type as search field on form.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
 Rank: Aficionado
Joined: 3/19/2008 Posts: 192 Location: London, UK
|
Ismail, Where there is a will, there is a way :) D.
Darren Ferguson - Umbraco level 2 certified www.darren-ferguson.com - www.fergusonmoriyama.com
|
|
|
Guest |