|
|
Rank: Newbie
Joined: 2/20/2008 Posts: 9
|
I'd like to use the Lucene search on my Umbraco site (i don't want to use the XSLT search as i need to index Word and PDF files).
I'm really struggling to find any documentation and downloads to achieve this.
Various sites point me to download UmbracoUtilities however these links appear dead. I have also found documentation that the Utilities are integrated into Umbraco 3.
I see that the lucene.net.dll is installed in Umbraco but i can't find any of the other files needed (e.g. dashboard files to update the index).
I'd really appreciate it if someone cab point me in the direction of the latest instructions and downloads for implementing this.
Thanks
Dan
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 661 Location: Århus, Denmark
|
I've never used the lucene search myself, but I think that the code resides inside the umbracoext project at codeplex.: http://www.codeplex.com/umbracoext/SourceControl/ListDownloadableCommits.aspxThere is a folder inside the project named umbSearch, so try that out. but other than that, I can't be of much help :-)
Morten Bock - Level 2 certified - My danish blog with a few english posts | CodeGarden on Facebook
|
|
Rank: Newbie
Joined: 2/20/2008 Posts: 9
|
Thanks for this. I was really hoping for a compiled version but will see what i can do with this.
Thanks
Dan
|
|
Rank: Newbie
Joined: 2/20/2008 Posts: 9
|
OK, i've got the indexer working but when i try and do a search i get an error as it can't find this xslt file which is not included:
umbSearchOrderedList.xslt
Anyone know where i can get this from?
Thanks
Dan
|
|
Rank: Enthusiast
Joined: 6/7/2007 Posts: 13 Location: Copenhagen, Denmark
|
I haven’t played with Lucene search since Umbraco version 2.x, but here is the xslt (original) from one of my installs. Hope that will do… Code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<ol> <xsl:attribute name="start"><xsl:value-of select="/search/result/@resultNumber"/></xsl:attribute> <xsl:for-each select="/search/result"> <li> <p><b><xsl:value-of select="node/@nodeName"/></b><br/> <xsl:value-of select="resultHighlight" disable-output-escaping="yes"/><br/> Last Update: <xsl:value-of select="umbraco.library:LongDate(node/@updateDate)"/> by <xsl:value-of select="node/@writerName"/></p> </li> </xsl:for-each> </ol>
</xsl:template>
</xsl:stylesheet>
/Finn
|
|
Rank: Newbie
Joined: 2/20/2008 Posts: 9
|
Thanks for that. Do you know if the index should be indexing word/pdfs by default? I've got html text returned in the results but no files.
|
|
Rank: Enthusiast
Joined: 6/7/2007 Posts: 13 Location: Copenhagen, Denmark
|
Well, as far as I know, the only way to make Umbraco search into files like ms office files and pdf files, is to upload the files through an upload on your documenttype where the alias is umbracoFile (Remember that my description is for version 2.x) Settings for umbSearch is in an xml file that is located in: \data\umbSearch\umbracoSearchConfig.xml Below is the xml from my install. Code: <?xml version="1.0" encoding="utf-8" ?> <indexConfiguration>
<!-- separate multiple items with semicolons -->
<indexDataWithAliases>bodyText;anotherPropertyAlias</indexDataWithAliases>
<excludeUmbracoNaviHide>true</excludeUmbracoNaviHide>
<excludeNodeTypes>sampleAlias</excludeNodeTypes>
<excludeIds>0</excludeIds>
<indexFilesWithAliases>umbracoFile;file</indexFilesWithAliases>
<!-- the username (login) for a user who should receieve error messages (mails) when the index doesn't update --> <alertUserAlias>umbraco</alertUserAlias>
</indexConfiguration>
Also…you definitely need to have the filter files placed in the bin folder. The search result will only link to the node containing the upload, NOT to the actual document. One way to go around that, is to make a node for each upload, and in the template write something like this: Code: <html> <head> <META HTTP-EQUIV=Refresh CONTENT="0; URL=<?UMBRACO_GETITEM field="umbracoFile"/>"> </head> </html>
/Finn
|
|
Rank: Newbie
Joined: 4/2/2008 Posts: 14 Location: FRANCE
|
danimal wrote:OK, i've got the indexer working but when i try and do a search i get an error as it can't find this xslt file which is not included:
umbSearchOrderedList.xslt
Anyone know where i can get this from?
Thanks
Dan Hi. I've downloaded the umbracoext-15504.zip archive, but don't know how I can install it in Umbraco. Should I copy some files in the Umraco installation folder, like the user control ascx files ?
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 416 Location: Preston, UK
|
darkman,
You will also need to copy over the dlls in the bin. Make sure you a back up first.
Regards
Ismail
Level 2 certified. If it aint broke dont fix.
|
|
Rank: Newbie
Joined: 4/2/2008 Posts: 14 Location: FRANCE
|
Is there an installation documentation for umbSearch ? I'm lost a little bit cause of the organisation of the files : why is there a solution file in umbSearch ? I tried to generate and compile this solution but I have many errors about missing files,such dll files,...
|
|
Rank: Enthusiast
Joined: 11/27/2006 Posts: 11
|
For all the poor schmucks like me who found the installer and then couldn't find an kind of documentation to explain how to actually use the search package... here's the link to the docs: http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/Implementing_Search
|
|
|
Guest |