Hi all,
I've been looking at this function for a while now (and even posted a question a bit ago without success) and I'm surprised there aren't more questions posted about it, which makes me think I'm doing something wrong! However, I think I can articulate the issue a bit better now, so I'm going to ask the community again...
I have a portal, with a list and a number of metadatafilters. I want to be able to search the view using Lucene parameters, but not by using Global Search as I want the results to be from my List view (for format and content reasons). The List search functionality provides a wildcard function (*), which is essential for any text fields. However, it will only allow me to search a single string. The parameters that make it to the URL are /?search=term1+term2, but this does not provide results unless term1 and term 2 form a contiguous string in a single field. The same is true for /?search=*term1+*term2 and adding Lucene criteria just extends the string (e.g. /?search=*term1+AND+*term2). So I cannot search for 'term1 in field 1' AND/OR 'term2 in field 2'.
Somewhat bizarrely, if you change the + in the URL for an ampersand (so /?search=*term1&*term2) the search works exactly as you would expect for a lucene AND search (although from what I can gather, this behaviour is in itself anomalous). However, I can't find a way to make it do an OR, otherwise I would just change the way the query string parameters are generated.
Please - does anybody have any ideas about how I do this to allow *, AND, and OR searches of a List across multiple fields?
Many thanks
Ralph