Searching a blog

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/4/2010 10:45:48 AM
Gravatar
Total Posts 67

Searching a blog

Sorry if this has been asked already, but Lucene does not seem to be indexing my blog module. is there a configuration that I missed or something? We noticed that certain keywords were not showing up in our search results, so I rebuilt the index. Those keywords now show up from our normal HTML content modules, but I noticed that we have a blog entry containing the same keywords, and this blog entry is not displaying in our search results. Any idea?

11/4/2010 11:58:30 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Searching a blog

I recently developed a suspicion that blog headers weren't being indexed, but the blog contents do seem to be indexed. I haven't had a chance to look into it in more detail, but if you can investigate some more and confirm, I'm sure Joe can fix it as a bug or let us know what we need to do to take care of it.

Also, just to confirm, your blog module and/or the page it's on are not secured with a security role, correct?

Thanks,

Jamie

11/4/2010 12:51:52 PM
Gravatar
Total Posts 67

Re: Searching a blog

You're right, the blog titles are not indexing. I guess I tested too early because the content was not displaying in my listings before, and now it's working just fine. The search results are listing the blog module instance title rather than the entry title. It's like that field in the database is just being dropped altogether.

Another question I had is that it seems like Lucene is not compensating for plurals. If I search for "dog" it does not return any results for "dogs" and vice versa. I would think that if searching for "dog" it would return for "dogs" because it's the same word with an s added. Usually wouldn't there be wildcards tacked onto the beginnings and ends search words?

11/4/2010 1:23:59 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Searching a blog

Well, I just took a look at the Lucene FAQ and came up with some interesting info:

You can do a wildcard search by putting * after a word to match any string of characters, so in your example searching for "dog*" will return dog, dogs, dogfight, etc. You can also use ? to match a single character, so dog? matches dog or dogs. These examples appear to work properly on our site.

If Joe decides to really tackle the Lucene search implementation and improve it, I'd love to see:

  • Support for complex queries -- and, or, not (with grouping) -- This would be very helpful here on mojoPortal.com! Joe might be able to implement this according to instructions here.
  • Addition of the contents of linked PDF documents (self-hosted) into the search index. We have a lot of these.
11/4/2010 1:35:57 PM
Gravatar
Total Posts 67

Re: Searching a blog

Yes, that trick does seem to work, but it's so clunky for your average user. We might have to switch to a Google or Bing search after launch, which is disappointing because I like the control that I have over the design with Lucene. Plus, Google Custom Search costs money, and it's not a large site. I guess I'll have to see what the client thinks!

11/4/2010 1:36:30 PM
Gravatar
Total Posts 67

Re: Searching a blog

Thanks for the help, by the way, Jamie!

11/4/2010 2:45:18 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Searching a blog

You bet! I agree with you, and I hope Joe chimes in when he's back from vacation.

11/4/2010 4:02:25 PM
Gravatar
Total Posts 2239

Re: Searching a blog

I think you are correct that blog entry titles are not being indexed but I do get the Blog Entry title in my search results when my search matches content. For an example, try this search on my site: http://i7media.net/SearchResults.aspx?q=Widget.

You may want to make sure you have the following in your user.config.

    <add key="SearchUseBackwardCompatibilityMode" value="false" />

HTH,
Joe
 

11/4/2010 4:24:23 PM
Gravatar
Total Posts 67

Re: Searching a blog

I have that line in my user.config already. It displays the way that I would expect in your results, but that's not what happens on mine.

11/4/2010 4:27:11 PM
Gravatar
Total Posts 2239

Re: Searching a blog

Can you share a link to your site?

11/4/2010 4:45:53 PM
Gravatar
Total Posts 67

Re: Searching a blog

unfortunately I can't frown

You must sign in to post in the forums. This thread is closed to new posts.