Re: Need help with query syntax

2017-08-11 Thread Erick Erickson
Yep.. On Fri, Aug 11, 2017 at 6:31 AM, OTH wrote: > Hi, thanks for sharing the article. > > On Fri, Aug 11, 2017 at 4:38 AM, Erick Erickson > wrote: > >> Omer: >> >> Solr does not implement pure boolean logic, see: >> https://lucidworks.com/2011/12/28/why-not-and-or-and-not/. >> >> With appropri

Re: Need help with query syntax

2017-08-11 Thread OTH
Hi, thanks for sharing the article. On Fri, Aug 11, 2017 at 4:38 AM, Erick Erickson wrote: > Omer: > > Solr does not implement pure boolean logic, see: > https://lucidworks.com/2011/12/28/why-not-and-or-and-not/. > > With appropriate parentheses it can give the same results as you're > discoveri

Re: Need help with query syntax

2017-08-10 Thread Dave
Eric you going to vegas next month? > On Aug 10, 2017, at 7:38 PM, Erick Erickson wrote: > > Omer: > > Solr does not implement pure boolean logic, see: > https://lucidworks.com/2011/12/28/why-not-and-or-and-not/. > > With appropriate parentheses it can give the same results as you're > discov

Re: Need help with query syntax

2017-08-10 Thread Erick Erickson
Omer: Solr does not implement pure boolean logic, see: https://lucidworks.com/2011/12/28/why-not-and-or-and-not/. With appropriate parentheses it can give the same results as you're discovering. Best Erick On Thu, Aug 10, 2017 at 3:00 PM, OTH wrote: > Thanks for the help! > That's resolved

Re: Need help with query syntax

2017-08-10 Thread OTH
Thanks for the help! That's resolved the issue. On Fri, Aug 11, 2017 at 1:48 AM, David Hastings < hastings.recurs...@gmail.com> wrote: > type:value AND (name:america^1+name:state^1+name:united^1) > > but in reality what you want to do is use the fq parameter with type:value > > On Thu, Aug 10, 20

Re: Need help with query syntax

2017-08-10 Thread David Hastings
type:value AND (name:america^1+name:state^1+name:united^1) but in reality what you want to do is use the fq parameter with type:value On Thu, Aug 10, 2017 at 4:36 PM, OTH wrote: > Hello, > > I have the following use case: > > I have two fields (among others); one is 'name' and the other is 'typ

Need help with query syntax

2017-08-10 Thread OTH
Hello, I have the following use case: I have two fields (among others); one is 'name' and the other is 'type'. 'Name' is the field I need to search, whereas, with 'type', I need to make sure that it has a certain value, depending on the situation. Often, when I search the 'name' field, the sear

Re: Need help with Query Syntax

2017-04-17 Thread OTH
I tried that, but it returned no results. I understand now that the issue is that since the field has been tokenized - searching for "*san\ *" will try to search for individual tokens which contain the string sequence "san ", and so of course it won't find any. I think I've found another workaround

Re: Need help with Query Syntax

2017-04-17 Thread Mikhail Khludnev
This can be done with escaping space select?q=field:*san\ * Probably sow=false in new version might also helo On Mon, Apr 17, 2017 at 4:42 PM, OTH wrote: > If I submit the query: > "select?q=field:*san*" > Then it works as expected; returning all values in the field which contain > the string

Re: Need help with Query Syntax

2017-04-17 Thread OTH
Ok. What analyzer / fieldtype should I use to be able to search across tokens? Basically, I'm just trying to replicate the functionality of the AnalyzingInfixLookupFactor Suggester, but I need to do it using a regular index, because I need to utilize multiple fields using edismax bq, which seems t

Re: Need help with Query Syntax

2017-04-17 Thread Binoy Dalal
Use the analyser available in the solr admin console to find out exactly how your query is analysed. That should give you a lot more information. On Mon 17 Apr, 2017, 21:58 OTH, wrote: > Ok, I get it now, it's because the field has been indexed as tokens. So > maybe I should use a field which d

Re: Need help with Query Syntax

2017-04-17 Thread OTH
Ok, I get it now, it's because the field has been indexed as tokens. So maybe I should use a field which does not have a tokenizer index? I'll try something like that. Thanks On Mon, Apr 17, 2017 at 9:16 PM, OTH wrote: > The field type is "text_general". > > On Mon, Apr 17, 2017 at 7:15 PM, B

Re: Need help with Query Syntax

2017-04-17 Thread OTH
The field type is "text_general". On Mon, Apr 17, 2017 at 7:15 PM, Binoy Dalal wrote: > I think it returns everything because your query matches *san or " *". > What is your field type definition? > > On Mon 17 Apr, 2017, 19:12 OTH, wrote: > > > If I submit the query: > > "select?q=field:*san*

Re: Need help with Query Syntax

2017-04-17 Thread Binoy Dalal
I think it returns everything because your query matches *san or " *". What is your field type definition? On Mon 17 Apr, 2017, 19:12 OTH, wrote: > If I submit the query: > "select?q=field:*san*" > Then it works as expected; returning all values in the field which contain > the string "san". >

Need help with Query Syntax

2017-04-17 Thread OTH
If I submit the query: "select?q=field:*san*" Then it works as expected; returning all values in the field which contain the string "san". However if I submit: "select?q=field:*san *" It then seems to return all the values of the field, regardless of what the value is (!) I only wish in this cas

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

2012-09-21 Thread cleonard
perfect. -- View this message in context: http://lucene.472066.n3.nabble.com/Help-with-Query-syntax-How-to-make-a-query-that-works-in-between-AND-and-OR-tp4009451p4009470.html Sent from the Solr - User mailing list archive at Nabble.com.

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

2012-09-21 Thread Otis Gospodnetic
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. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Help-with-Query-syntax-How-to-make-a-query-that-works-in-between-AND-and-O

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

2012-09-21 Thread cleonard
l possible. -- View this message in context: http://lucene.472066.n3.nabble.com/Help-with-Query-syntax-How-to-make-a-query-that-works-in-between-AND-and-OR-tp4009451p4009460.html Sent from the Solr - User mailing list archive at Nabble.com.

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

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

2012-09-21 Thread cleonard
for a solution, but so far I've not found the answer. I feel that there is a simple solution, so I'm hoping that someone can enlighten me here. -- View this message in context: http://lucene.472066.n3.nabble.com/Help-with-Query-syntax-How-to-make-a-query-that-works-in-between-AND-a

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

Help with query syntax

2007-08-06 Thread matt davies
Hello everyone I'm using solr1.1 and more or less the example app that comes with the nightly build. I'm trying to do a search that says give me all the results where id=news* and any of the other fields in the index that contain the search term form the form. I've created ID's that cont