[xwiki-users] The right way to present the Lucene search engine?
If I wanted to have a page that presented the Lucene search engine (a la the Google home page), what is the 'right' way to do this? I'm guessing that it's to #include Main.Search ? Thanks in advance. -- Jim Dowson CTO, Global Services, EMC Corporation Linx: (617) 598-0505
Hi Jim, you could use this : <div style="text-align: center;"> <form action="/xwiki/bin/view/Main/LuceneSearch"> <input id="globalsearchinput" type="text" name="text" value="$msg.get('panels.search.inputText')" size="45" onfocus="if ( this.value == 'Type your search text here.') value=''; this.select();" onblur="if (this.value == '') value='$msg.get('panels.search.inputText')'; this.blur()"/> <input class="button" value="$msg.get('panels.search.submit')" type="image" src="$xwiki.getSkinFile("go.png")"/> </form> </div> This code will create the search form input field and a button to launch the search. Then you'll need to put it in the right place on your page (I guess you'll have a lot of divs on it). Placed alone on the page it will show up as Google's standard page. Guillaume On 10/03/2008, [email protected] <[email protected]> wrote:
If I wanted to have a page that presented the Lucene search engine (a la the Google home page), what is the 'right' way to do this?
I'm guessing that it's to #include Main.Search ?
Thanks in advance.
--
*Jim Dowson*
CTO, Global Services, EMC Corporation
Linx: (617) 598-0505
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Mar 10, 2008, at 3:56 PM, [email protected] wrote:
If I wanted to have a page that presented the Lucene search engine (a la the Google home page), what is the ‘right’ way to do this?
I’m guessing that it’s to #include Main.Search ?
Check how it's done in the default XWiki XAR. Go to the search page and you'll find a link to the experimental lucene search page (Main.LuceneSearch from the top of my head). Edit that page to see how it's done. You can also include it directly if you don't need to change it. -Vincent
participants (3)
-
Dowson_Jim@emc.com -
Guillaume Lerouge -
Vincent Massol