Re: Restricting the searchable fields

2006-02-24 Thread Richard Grantham
Thanks Erik, I'll give it a go and let you know how I get on. I suppose it's a bit of a wierd request but it's a requirement on the project I'm working on. Erik Hatcher wrote: On Feb 24, 2006, at 6:26 AM, Richard Grantham wrote: Query query = MultiFieldQueryParser.parse(queryString, search

Re: Restricting the searchable fields

2006-02-24 Thread Erik Hatcher
On Feb 24, 2006, at 6:26 AM, Richard Grantham wrote: Query query = MultiFieldQueryParser.parse(queryString, searchFields, new StandardAnalyzer()); This mostly works. The point where it falls down is when you specify a field I want prohibited in the query string. Eg. searching for 'lon

Restricting the searchable fields

2006-02-24 Thread Richard Grantham
Hi list, I've been working on trying to restrict the indexed fields that are available to different types of search. I have two 'classes' of search: admin and standard. Admin may search all fields, standard may search only three or four. Unfortunately I've not had much joy reliably impleme