Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 5/30/2009 9:48 PM (edited 5/30/2009 9:54 PM)
In v1.6 when I perform a site search with the string:

Test!

I get the following message:
Couldn't execute the search query due to invalid arguments

When I reach 'IndexQuery.cs' (in the my trunk version) it fails here:
Query multiQuery = MultiFieldQueryParser.Parse(new string[] { queryText, queryText }, new string[] { "title", "contents" }, new StandardAnalyzer());

giving:
Exception Details: Lucene.Net.QueryParsers.ParseException: Encountered "((EOF))" at line 1, column 5.
Was expecting one of:
"(" ...
((QUOTED)) ...
((TERM)) ...
((PREFIXTERM)) ...
((WILDTERM)) ...
"[" ...
"{" ...
((NUMBER)) ...

It is only when certain characters are passed in the search string.

I notice there is a 'keywordFilter' containing the site name but nothing else.

Is there a filter of some sort to remove these characters?
How shlould they be handled ideally?
RegEx?
Some sort of encoding?
Are there limitations with the search?

I have not had experience with Lucene.Net but I know I will have to look at it now. I am determined to get to grips with the every nut and bolt of Cuyahoga. I have made a lot of progress (IOC, Castle, MVC etc...)

I keep finding a lot of questions :)

I will continue to look into it. Can anyone point me in the right direction?
# Constructor 6/2/2009 1:32 AM (edited 6/2/2009 2:15 PM)
Another search question. I am getting that sinking feeling (I may be doing it all wrong)...

To cut this short, in my module I get from the 'item list' to the 'detail view' by creating urls for each item that look something like this. There is a section, an action and an id.
.../468/section.aspx/Details/1/

So each item gets a link that has details and the id if the item. The search results urls are like this:
.../468/section.aspx/1/

So the search results links do not get me to the item. This is the same issue I had when creating the RSS feed link. That issue was simple to fix. I am not sure about this one yet. More importantly, since this is the second time I have had this exact issue I am feeling that I have missed the boat, done something fundamentally wrong?


EDIT: (A while later....)


Ok I just set the 'path' property when creating SearchContent items. In my defence it is late and I am tired.