Is it possible to make Lucene search protected contents. Options
mlm
Posted: Saturday, November 18, 2006 10:14:12 AM
Rank: Enthusiast

Joined: 10/9/2006
Posts: 14

I would like to use Lucene to search an intranet.
The intranet is under login control.
The search result is always empty.
If I remove login control the search engine works.

Would it be easier to do this with XSLT search?

Cheers Mikael
drobar
Posted: Saturday, November 18, 2006 6:26:50 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,696
Location: KY, USA
I'm not expert with the Lucene search, but I don't think you can search protected content. As good as the Lucene search is, it is not overly configurable.

You can search protected content with XSLTsearch, which does not rely on the Lucene engine. It is suitable for sites of <1000 nodes. By default, XSLTsearch does *not* search protected pages, but this is easily modified (I use the IsProtected function, which you'd just remove from the XSLT).

Search the forum for XSLTsearch for more info on it.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
neehouse
Posted: Saturday, November 18, 2006 6:45:42 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
You could modify the umbracoUtilities source to allow it to index protected content. You would need to set the search up to be protected as well for security purposes.


• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
drobar
Posted: Saturday, November 18, 2006 7:57:45 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,696
Location: KY, USA
Good point, Casey!

I forget that you can tweak the Umbraco source code to your preferences. Since I'm not a professional developer I don't even think about modifying the source code ;)

Making an XML config file for the Lucene search would be fantastic, if someone wanted to do it.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.