Searching on documents by name

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.
3/24/2011 11:14:49 AM
Gravatar
Total Posts 4

Searching on documents by name

Hi all,

 

I'm trying to add documents to my site and allow users to be able to search on them but I'm not finding any during a search.

I followed the instructions to re-index the site but still nothing.

What am I missing? 

Thanks,

Mark

3/24/2011 11:37:21 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Searching on documents by name

If by documents you mean external files (PDF, etc.), the mojoPortal internal Lucene search doesn't index them. You can take a look at this thread for strategies that may help. If you are using mojoPortal 2.3.4.5 or later, you might also try switching to the Google or Bing search and see if that works better for you.

Jamie

3/24/2011 11:50:38 AM
Gravatar
Total Posts 18439

Re: Searching on documents by name

if you do mean pdf files, you could put them in an instance of our Shared Files feature, then they will be searchable by title in the site search. You could optionally copy and paste the text of the pdf also into the description field and then it will also work in site search for the contents of the pdf.

if you mean something else by "documents" please clarify

Best,

Joe

3/28/2011 7:22:07 PM
Gravatar
Total Posts 4

Re: Searching on documents by name

Guys,

I'm looking to provide a basic search feature for users of my site. They will know the name of the document but not necessarily where it's located so I need a way for them to search for them.

For example, a 401k document would be titled something like 401k.doc or 401k.pdf.  My users will search on "401k" and I'd like a search to return any documents that has "401k" in the document name.

Is that possible?

Thanks,

Mark

3/28/2011 7:55:25 PM
Gravatar
Total Posts 2253

Re: Searching on documents by name

Hi Mark,

Joe Audette's suggestion to use the Shared Files feature is your best bet. Any files uploaded using the Shared Files feature will have their filename indexed so your users can search them.

Hope this helps,
Joe D.

3/29/2011 7:32:22 AM
Gravatar
Total Posts 4

Re: Searching on documents by name

All,

Here's what I've done but I'm still getting no results on my search for "401":

1) added the shared files module to the home page

2) uploaded a file titled "401_Discretionary_Memo.docx"

3) edited the file and added "401" for the description and updated it

4) deleted all the files in the /Data/Sites/[SiteID]/index folder

5) searched with no results

Am I doing something wrong? 

Thanks,

Mark

3/29/2011 10:08:30 AM
Gravatar
Total Posts 2253

Re: Searching on documents by name

Hi Mark,

Are you getting any results when you search for terms that are in content on your site?

Check if there are files in the /Data/Sites/[SiteID]/index directory.

Did you try your search more than once after deleting the files in the index directory? The reason I ask is that the index is not rebuilt until a search is performed which triggers the site to check the index and when it notices that the directory is empty, it spins up an index job. If you only searched once, you wouldn't get any results because the index hadn't been rebuilt yet. Once the index is rebuilt (shouldn't take long if your site isn't very large), you should be able to find what you are searching for. The index has undoubtedly been rebuilt by now so you might want to try your search again.

HTH,
Joe D.

 

3/30/2011 10:25:11 AM
Gravatar
Total Posts 4

Re: Searching on documents by name

Joe, Joe.

It's returning the proper result now.  I'm pretty sure I did a search after clearing the contents from that folder but I could be wrong. 

What's the best way to handle this situation for users that will have the ability to upload documents?  Some of my users will maintain their own document lists and I'd like to be prepared in case they experience the same situation?

Thanks for the help -- I really do appreciate it.

Regards,

Mark

3/30/2011 10:39:10 AM
Gravatar
Total Posts 2253

Re: Searching on documents by name

Hi Mark,

The index will be updated after new files are uploaded or existing files are updated. All of the included mojoPortal modules work this way.

If someone deletes the index files, a search will need to be performed to get the index re-built.

So, in short, as long as the index files remain intact, you shouldn't run into any problems.

HTH,
Joe D.

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