Searching for content with a colon returns no results

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/17/2014 5:23:02 AM
Gravatar
Total Posts 5

Searching for content with a colon returns no results

What operating system? Windows 8
What database platform? SQL Server 2008
What version of mojoPortal? 2.4.0.3 MSSQL
What version of .NET? 4.5
Steps to produce the problem, expected results, and actual results.

Hi Joe,

If I have a page called 'Colon: Colon' and rebuild the search index, then attempt to search for that page I get the following results:

- Search term: 'Colon' - Result: page returned
- Search term: 'Colon\:' - Result: page returned
- Search term: 'Colon:' - Result: 'Sorry, your search query is not formed correctly, we were unable to complete your search.'

If there a config setting I can set so I can search with just 'Colon:' (without manually escaping) and return the page in the search results?

Cheers,

Steve

12/17/2014 8:31:32 AM
Gravatar
Total Posts 18439

Re: Searching for content with a colon returns no results

Sorry, but I have no solution to offer for that. The search index uses apache lucene, it does not index punctuation, content is tokenized into words, searching on words will return documents that contain the word. Actually in lucene query syntax a colon has special meaning to identify the field in the index that you want to search, though this is not normally used because users don't know the field names or have any knowledge how the index is structured. But, for example there are fields named PageName and ModuleTitle.

So searching on this site with PageName:Download finds the download page.

I don't have any easy solution to offer to change the way this works. One should search on words not on strings that contain words and punctuation for best results. The help link next to the search also has info about advanced query syntax.

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