Re: Help with Query syntax. How to make a query that works in between AND and OR.

2012-09-21 Thread cleonard
Otis Gospodnetic-5 wrote > Hi, > > I'm curious... why do you issue multiple queries for autocomplete > purposes? > Have you tried using Suggester? May also want > http://sematext.com/products/autocomplete/index.html which works > nicely with Solr. > > Otis > Search Analytics - http://sematext.co

Re: Help with Query syntax. How to make a query that works in between AND and OR.

2012-09-21 Thread Otis Gospodnetic
Hi, I'm curious... why do you issue multiple queries for autocomplete purposes? Have you tried using Suggester? May also want http://sematext.com/products/autocomplete/index.html which works nicely with Solr. Otis Search Analytics - http://sematext.com/search-analytics/index.html Performance Mon

Re: Help with Query syntax. How to make a query that works in between AND and OR.

2012-09-21 Thread cleonard
I've played with the mm parameter quite a bit. It does sort of do what I need if I do multiple queries decreasing the mm parameter with each call. However, I'm doing this for a web form auto complete or suggester so I really want to make this happen in a single request if at all possible. -- V

Re: Help with Query syntax. How to make a query that works in between AND and OR.

2012-09-21 Thread Shawn Heisey
On 9/21/2012 11:22 AM, cleonard wrote: Now a mistyped term is no problem. I still get results. The issue now is that I get too many results back. What I want is something that effectively does an AND if a term is matched, but does an OR when a term is not found. To say it a differnt way -- If

Re: Help with query syntax

2007-08-06 Thread matt davies
I've worked it out. colons, not = signs :-) if request.has_key('q'): z = request['q'] the_url = request.META['PATH_INFO'].split('/') cat_type = the_url[3] print cat_type gog = 'id: ' + cat_type + '* AND (title_t:"' + z + '"' + ' OR