Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to include a Data Object Model in the search box?


Go to End


5 Posts   1505 Views

Avatar
onlinesid

Community Member, 1 Post

12 January 2011 at 8:39pm

Hi,

I'm new to Silverstripe. Can anyone give me a clue on how to include a DOM in the site search?

Thanks

Avatar
BenWu

Community Member, 97 Posts

22 May 2012 at 4:50am

i would like to know as well. guess we have to extend the searchform function??

Avatar
danzzz

Community Member, 175 Posts

22 May 2012 at 5:31am

may you want to check this module:
http://www.ssbits.com/tutorials/2012/dataobject-as-pages-the-module/

you can learn it from this module or just use it

Avatar
swaiba

Forum Moderator, 1899 Posts

22 May 2012 at 9:23pm

Hi,

Here are the links from my "ss pastie" file...

aram custom serach
http://www.silverstripe.org/all-other-modules/show/6641?start=24#post290089

my hacky way to custom search results
http://www.silverstripe.org/customising-the-cms/show/14067#post288644

Avatar
BenWu

Community Member, 97 Posts

22 May 2012 at 10:11pm

Edited: 22/05/2012 11:24pm

Hello, I found this:
http://www.i-lateral.com/tutorials/extending-fulltextsearch-for-dataobjects/
But i haven't tried this but it should work. It's small and simple. That could help small sites.

I also found this: "MATCH (Title, MenuTitle, Content, MetaTitle,
https://groups.google.com/group/silverstripe-dev/msg/f7af364f1fba2def
I tried it but unfortunately it doesn't work for me. I find it hard to debug so i give up.

But an ultimate solution would be this: http://code.google.com/p/lucene-silverstripe-plugin/
It will index all public pages.

[Edit]

I can report the lucene plugin works very well. The relation search works perfectly. however, if i do
wget http://your.server.name/dev/tasks/ProcessJobQueueTask to index the website, i can only get the login page. How to pass user/pass to wget?

[more edit]

and i found this for the wget problem:
http://www.silverstripe.org/general-questions/show/16560