Re: eDismax query syntax question

2020-06-16 Thread Shawn Heisey
On 6/15/2020 8:01 AM, Webster Homer wrote: Only the minus following the parenthesis is treated as a NOT. Are parentheses special? They're not mentioned in the eDismax documentation. Yes, parentheses are special to edismax. They are used just like in math equations, to group and separate thing

Re: eDismax query syntax question

2020-06-15 Thread Mikhail Khludnev
max > documentation. > > -Original Message----- > From: Markus Jelsma > Sent: Saturday, June 13, 2020 4:57 AM > To: solr-user@lucene.apache.org > Subject: RE: eDismax query syntax question > > Hello, > > These are special characters, if you don't ne

Re: eDismax query syntax question

2020-06-15 Thread Andrea Gazzarini
tation. > > -Original Message- > From: Markus Jelsma > Sent: Saturday, June 13, 2020 4:57 AM > To: solr-user@lucene.apache.org > Subject: RE: eDismax query syntax question > > Hello, > > These are special characters, if you don't need th

RE: eDismax query syntax question

2020-06-15 Thread Webster Homer
-- From: Markus Jelsma Sent: Saturday, June 13, 2020 4:57 AM To: solr-user@lucene.apache.org Subject: RE: eDismax query syntax question Hello, These are special characters, if you don't need them, you must escape them. See top of the article: https://lucene.apache.org/solr/guide/8_5/the

RE: eDismax query syntax question

2020-06-13 Thread Markus Jelsma
> To: solr-user@lucene.apache.org > Subject: eDismax query syntax question > > Recently we found strange behavior in a query. We use eDismax as the query > parser. > > This is the query term: > 1,3-DIMETHYL-5-(3-PHENYL-ALLYLIDENE)-PYRIMIDINE-2,4,6-TRIONE > > It shou

eDismax query syntax question

2020-06-12 Thread Webster Homer
Recently we found strange behavior in a query. We use eDismax as the query parser. This is the query term: 1,3-DIMETHYL-5-(3-PHENYL-ALLYLIDENE)-PYRIMIDINE-2,4,6-TRIONE It should hit one document in our index. It does not. However, if you use the Dismax query parser it does match the record. Th

Re: Range query syntax on a polygon field is returning all documents

2019-05-12 Thread David Smiley
at you've shown. > * Can you please try RptWithGeometrySpatialField instead > of SpatialRecursivePrefixTreeFieldType to see if the problem goes away? > This could point to a precision issue; though still what you've seen is > suspicious. > * Can you try one other query syntax e.g. bbox query parse

Re: Range query syntax on a polygon field is returning all documents

2019-03-20 Thread David Smiley
Can you try one other query syntax e.g. bbox query parser to see if the problem goes away? I doubt this is it but you seem to point to the syntax being related. ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Mon, Mar 18, 2019 at 12:24 AM M

Range query syntax on a polygon field is returning all documents

2019-03-17 Thread Mitchell Bösecke
low: https://stackoverflow.com/q/55212622/1017571 1. Can I not use the range query syntax with Geo3D? I.e. am I misreading the documentation? 2. Is it expected that using JTS will *significantly* slow down the indexing time? Thanks for any insight. -- Mitchell Bosecke, B.Sc. Senior Application Develope

Re: Need a Query syntax for fetching results

2018-03-06 Thread Rick Leir
Hi Raj Maybe this would be what you need. "Keyword Tokenizer This tokenizer treats the entire text field as a single token." There used to be an example showing the use of this in schema.xml, but I am away from my computer so it is hard to check. And everything Emir says is spot-on. Then you might

Re: Need a Query syntax for fetching results

2018-03-06 Thread Emir Arnautović
Hi Raj, You need to get familiar with Solr analysis chain: https://lucene.apache.org/solr/guide/6_6/understanding-analyzers-tokenizers-and-filters.html When playing with it, use admin console analysis

Need a Query syntax for fetching results

2018-03-06 Thread Rajvinder Pal
Hi , I am new to Lucene. I have a requirement where when i request the organization name, it should show the matching organization names. I have written the q param as orgname_text: ABC test it is returning the result :- ABC test limited ABC XYZ limited DEF ABC limted test limited I want all t

Re: Solr regex phrase query syntax

2017-11-20 Thread Mikhail Khludnev
Hello, Chuming. It doesn't. The closest thing is to create TermAutomatonQuery. On Mon, Nov 20, 2017 at 11:03 PM, Chuming Chen wrote: > Hi All, > > According to http://lucene.apache.org/core/7_1_0/core/org/apache/lucene/ > util/automaton/RegExp.html. Lucene supports repeat expressions. > > repeat

Solr regex phrase query syntax

2017-11-20 Thread Chuming Chen
Hi All, According to http://lucene.apache.org/core/7_1_0/core/org/apache/lucene/util/automaton/RegExp.html. Lucene supports repeat expressions. repeatexp ::= repeatexp ? (zero or one occurrence) | repeatexp * (zero or more occurrences) | repeatexp +

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: Boost query syntax error

2014-03-03 Thread Arun Rangarajan
All of them work like a charm! Thanks, Chris. On Mon, Mar 3, 2014 at 1:28 PM, Chris Hostetter wrote: > > : But this query does not work: > : > : q={!boost > : b=if(exists(query({!v='user_type:ADMIN'})),10,1)}id:1&rows=1&fl=*,score > : It gives an error like this: > > The problem is the way you a

Re: Boost query syntax error

2014-03-03 Thread Chris Hostetter
: But this query does not work: : : q={!boost : b=if(exists(query({!v='user_type:ADMIN'})),10,1)}id:1&rows=1&fl=*,score : It gives an error like this: The problem is the way you are trying to nest queries inside of each other w/o any sort of quoting -- the parser has no indication that the "b"

Boost query syntax error

2014-02-28 Thread Arun Rangarajan
The Solr function query documentation ( https://wiki.apache.org/solr/FunctionQuery#exists) says: exists(query({!v='year:2012'})) will return true for docs with year=2012 I have a document like: { id: 1, user_type: ADMIN, like_score: 1 } id, user_type and like_score are all indexed and stor

Re: Solr query syntax.

2013-12-02 Thread Jack Krupansky
Sent: Monday, December 02, 2013 3:17 AM To: solr-user@lucene.apache.org Subject: Re: Solr query syntax. Im using the default qparser that come with solr 4.4 , Is there anything better? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html

Re: Solr query syntax.

2013-12-02 Thread Ahmet Arslan
ext: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr query syntax.

2013-12-02 Thread elmerfudd
Im using the default qparser that come with solr 4.4 , Is there anything better? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784p4104344.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr query syntax.

2013-11-28 Thread Ahmet Arslan
dont consider fields. something like and(blabla , name: "george") It wont throw an exeption, so what is he considering "blablabla" to? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp4103784.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Converting Fast ESP queries(fql) to Solr query syntax

2013-11-28 Thread Charlie Hull
On 28/11/2013 14:09, elmerfudd wrote: I would like to perform searches in Solr using queries I extracted from Fast ESP . The queries are written in FQL (fast query language) format and I want to convert them to Solr query syntax . Is there any way to preform a search like this in Solr? Maybe a

Solr query syntax.

2013-11-28 Thread elmerfudd
Is solr ignoring parts of the query that dont consider fields. something like and(blabla , name: "george") It wont throw an exeption, so what is he considering "blablabla" to? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-syntax-tp410378

Converting Fast ESP queries(fql) to Solr query syntax

2013-11-28 Thread elmerfudd
I would like to perform searches in Solr using queries I extracted from Fast ESP . The queries are written in FQL (fast query language) format and I want to convert them to Solr query syntax . Is there any way to preform a search like this in Solr? Maybe a tool available? Could not find anything

Re: Query syntax error: Cannot parse ....

2013-05-30 Thread Yago Riveiro
.org/core/3_6_0/queryparsersyntax.html#Escaping%20Special%20Characters. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Query-syntax-error-Cannot-parse-tp4066560p4066879.html > Sent from the Solr - User mailing list archive at Nabble.com > (http://Nabble.com). > >

Re: Query syntax error: Cannot parse ....

2013-05-29 Thread bbarani
# has a separate meaning in URL.. You need to encode that.. http://lucene.apache.org/core/3_6_0/queryparsersyntax.html#Escaping%20Special%20Characters. -- View this message in context: http://lucene.472066.n3.nabble.com/Query-syntax-error-Cannot-parse-tp4066560p4066879.html Sent from the Solr

Re: Query syntax error: Cannot parse ....

2013-05-28 Thread gpssolr2020
Hi, Try to pass URL encode value(%23) for # . Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Query-syntax-error-Cannot-parse-tp4066560p4066566.html Sent from the Solr - User mailing list archive at Nabble.com.

Query syntax error: Cannot parse ....

2013-05-28 Thread yriveiro
Was expecting one of: ... ... ... "+" ... "-" ... ... "(" ... ")" ... "*" ... "^" ... ... ... ... ... ... ... "[" ... "{" ... ... ... 400 How I can fix the query? Regards /Yago - Best regards -- View this message

Re: JSON query syntax

2013-01-24 Thread Yonik Seeley
On Thu, Jan 24, 2013 at 8:55 PM, Otis Gospodnetic wrote: > Yes, this is JSON, so right > there it may be better, but for instance I see "v" here which to a regular > human may not be as nice as "value" if that is what "v" stands for. One goal was to reuse the parsers/parameter names. A completel

Re: JSON query syntax

2013-01-24 Thread Otis Gospodnetic
Nice, Yonik! Here is one suggestion. OK, I'm beginning you - please don't make it be as hard on the eyes as Local Params. :) I thought it was just me who could never get along with Local Params, but I've learned that a number of people find Local Params very hard to grok. Yes, this is JSO

JSON query syntax

2013-01-24 Thread Yonik Seeley
Although "lucene" syntax tends to be quite concise, nice looking, and easy to build by hand (the web browser is a major debugging tool for me), some people prefer to use a more "structured" query language that's easier to build up programmatically. XML fits the bill, but people tend to prefer JSON

Re: Date math query syntax

2012-11-18 Thread Indika Tantrigoda
et from a base > date literal value. > > -- Jack Krupansky > > -Original Message- From: Indika Tantrigoda > Sent: Sunday, November 18, 2012 3:11 PM > To: solr-user@lucene.apache.org > Subject: Date math query syntax > > > Hi All, > > I am trying to use d

Re: Date math query syntax

2012-11-18 Thread Jack Krupansky
ck Krupansky -Original Message- From: Indika Tantrigoda Sent: Sunday, November 18, 2012 3:11 PM To: solr-user@lucene.apache.org Subject: Date math query syntax Hi All, I am trying to use date math along with a filed value. 1970-01-01T04:32:010Z+(_val_:prep_time)MINUTES is the date mat

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: query syntax to find ??? chars

2012-07-12 Thread Jack Krupansky
When you put a backslash in a Java string you need to escape it with another backslash: "content:\\?\\?\\?\\?\\?\\?" -- Jack Krupansky -Original Message- From: Alexander Aristov Sent: Thursday, July 12, 2012 8:30 AM To: solr-user@lucene.apache.org Subject: Re: query synt

Re: query syntax to find ??? chars

2012-07-12 Thread Gora Mohanty
On 12 July 2012 19:28, Michael Della Bitta wrote: > Perhaps they're being displayed as question marks, but the actual > character is different? This is very likely to be the case, as messing up the encoding can leave one with entirely unexpected characters. The '?' probably corresponds to a non-d

Re: query syntax to find ??? chars

2012-07-12 Thread Michael Della Bitta
Perhaps they're being displayed as question marks, but the actual character is different? Michael Della Bitta Appinions, Inc. -- Where Influence Isn’t a Game. http://www.appinions.com On Thu, Jul 12, 2012 at 9:30 AM, Alexander Aristov wrote: > d

Re: query syntax to find ??? chars

2012-07-12 Thread Alexander Aristov
don't know why but doesn't work. :( Best Regards Alexander Aristov On 11 July 2012 23:54, Yury Kats wrote: > On 7/11/2012 2:55 PM, Alexander Aristov wrote: > > > content:?? doesn't work :) > > I would try escaping them: content:\?\?\?\?\?\? > > > >

Re: query syntax to find ??? chars

2012-07-11 Thread Yury Kats
On 7/11/2012 2:55 PM, Alexander Aristov wrote: > content:?? doesn't work :) I would try escaping them: content:\?\?\?\?\?\?

Re: Join Query syntax

2012-05-11 Thread Sohail Aboobaker
Is it available in Solr 3.5 or is there a way to do something similar in Solr 3.5,

Re: Join Query syntax

2012-05-10 Thread Otis Gospodnetic
ay, May 10, 2012 10:13 PM > Subject: Join Query syntax > > Hi, > > We have two indexes. One is for item master and other one is item detail. > Our search results page is supposed to show all the item masters in a > certain criteria but also include a column minimum price. This

Re: The correct query syntax for date ?

2011-07-07 Thread duddy67
It works. Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/The-correct-query-syntax-for-date-tp3147536p3149588.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: The correct query syntax for date ?

2011-07-07 Thread Erick Erickson
right, you have to escape the ':' in the date, those are Lucene query syntax characters. Try: q=datecreation:2001-10-11T00\:00\:00Z On Thu, Jul 7, 2011 at 10:36 AM, duddy67 wrote: > I allready tried the format: > > q=datecreation:2001-10-11T00:00:00Z > > but I still g

Re: The correct query syntax for date ?

2011-07-07 Thread duddy67
I allready tried the format: q=datecreation:2001-10-11T00:00:00Z but I still get the same error message. I use the 1.4.1 version. Is this the reason of my pb ? -- View this message in context: http://lucene.472066.n3.nabble.com/The-correct-query-syntax-for-date-tp3147536p3148384.html Sent

Re: The correct query syntax for date ?

2011-07-07 Thread Erick Erickson
st. > I didn't see any green colored comments. > Could you show me a concrete example of a date query ? > > Thanks > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/The-correct-query-syntax-for-date-tp3147536p3147890.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: The correct query syntax for date ?

2011-07-07 Thread duddy67
Thanks but I'm still lost. I didn't see any green colored comments. Could you show me a concrete example of a date query ? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/The-correct-query-syntax-for-date-tp3147536p3147890.html Sent from the Solr - User ma

Re: The correct query syntax for date ?

2011-07-07 Thread Ahmet Arslan
> I have a syntax problem in my query with the SOLR date > format. > This is what I type: > > q=datecreation:2001-10-11 > > but SOLR returns me an error message: > > Invalid Date String:'2001-10-11' > > I tried different combinations but none of them works. > Someone could tells me what is the

The correct query syntax for date ?

2011-07-07 Thread duddy67
ect syntax ? Thanks for advance. -- View this message in context: http://lucene.472066.n3.nabble.com/The-correct-query-syntax-for-date-tp3147532p3147532.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: bbox query syntax

2011-07-01 Thread David Smiley (@MITRE.org)
avid - Author: https://www.packtpub.com/solr-1-4-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/bbox-query-syntax-tp3130329p3131458.html Sent from the Solr - User mailing list archive at Nabble.com.

bbox query syntax

2011-07-01 Thread Kyle Lee
Hello all, What are we doing incorrectly with this query? http://10.0.0.121:8080/solr/select?q=(description:rifle)&fq=(transactionDate:[NOW-30DAY/DAYTO NOW/DAY] AND {!bbox sfield=storeLocation pt=32.73,-96.97 d=20}) If we leave the transactionDate field out of the filter query string, the query

Re: Help with explain query syntax

2011-03-22 Thread Glòria Martínez
Thank you very much! On Wed, Mar 9, 2011 at 2:01 AM, Yonik Seeley wrote: > It's probably the WordDelimiterFilter: > > > org.apache.solr.analysis.WordDelimiterFilterFactory > args:{preserveOriginal: > > 1 splitOnCaseChange: 1 generateNumberParts: 1 catenateWords: 0 > > generateWordParts: 1 catenat

Re: Help with explain query syntax

2011-03-08 Thread Yonik Seeley
It's probably the WordDelimiterFilter: > org.apache.solr.analysis.WordDelimiterFilterFactory args:{preserveOriginal: > 1 splitOnCaseChange: 1 generateNumberParts: 1 catenateWords: 0 > generateWordParts: 1 catenateAll: 0 catenateNumbers: 0 } Get rid of the preserveOriginal="1" in the query analyze

Re: Help with explain query syntax

2011-03-08 Thread Chris Hostetter
: : +DisjunctionMaxQuery((company_name:"(linguajob.pl linguajob) pl")~0.01) () : you can see the crux of your problem in this query string it seems you have a query time synonym in place to *expand* linguajob.pl into [linguajob.pl] and [linguajob] [pl] but query time synonym expansion of mul

Help with explain query syntax

2011-03-01 Thread Glòria Martínez
Hello, I can't understand why this query is not matching anything. Could someone help me please? *Query* http://localhost:8894/solr/select?q=linguajob.pl&qf=company_name&wt=xml&qt=dismax&debugQuery=on&explainOther=id%3A1 - 0 12 - id:1 on linguajob.pl company_name xml dismax - linguajob.pl

Re: Validate Query Syntax of Solr Request Before Sending

2011-02-18 Thread csj
is message in context: http://lucene.472066.n3.nabble.com/Validate-Query-Syntax-of-Solr-Request-Before-Sending-tp2515797p2528183.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Validate Query Syntax of Solr Request Before Sending

2011-02-17 Thread Markus Jelsma
Uh, how about the LuceneQParser? It does some checks and can return appropriate error messages. On Thursday 17 February 2011 06:44:16 csj wrote: > Hi, > > I wonder if it is possible to let the user build up a Solr Query and have > it validated by some java API before sending it to Solr. > > Is

Validate Query Syntax of Solr Request Before Sending

2011-02-16 Thread csj
ter these date". But this is far future... Regards, Christian Sonne Jensen -- View this message in context: http://lucene.472066.n3.nabble.com/Validate-Query-Syntax-of-Solr-Request-Before-Sending-tp2515797p2515797.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Ravish Bhagdev
Hi Erick, I've managed to fix the problem, it was to do with not encoding certain characters. Escaped with \ and it all works fine now :) . Sorry I was just being insane, look at debugQuery output helped. I know about the string field, this is kind of a uuid field that I am storing, so it it de

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Erick Erickson
You might look at the analysis page from the admin console for the field in question, it'll show you what various parts of the analysis chain do. But I agree with Jan, having your field as a "string" type is a red flag. This field is NOT analyzed, parsed, or filtered. For instance, if a doc has a

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Ravish Bhagdev
Arghhh.. I think its the regexp parser messing things up (just looked at the debugQuery ouput and its parsing incorrectly some "/" kind of letters I had. I think I can clean up the data off these characters or maybe there is a way to escape them... Ravish On Tue, Feb 15, 2011 at 1:54 PM, Ravis

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Jan Høydahl
The OR implies that all documents matching either one of the two terms shold be returned. Are you sure you are searching with correct uppercase/lowercase, as string fields are case sensitive? To further help you, we need copies of relevant sections of your schema and an exact copy of the query

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Ravish Bhagdev
Hi Jan, Thanks for reply. I have tried the first variation in your example (and again after reading your reply). It returns no results! Note: it is not a multivalued field, I think when you use example 1 below, it looks for both xyz and abc in same field for same document, what i'm trying to ge

Re: very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Jan Høydahl
http://wiki.apache.org/solr/SolrQuerySyntax Examples: q=myfield:(xyz OR abc) q={!lucene q.op=OR df=myfield}xyz abc q=xyz OR abc&defType=edismax&qf=myfield PS: If using type="string", you will not match individual words inside the field, only an exact case sensitive match of whole field. Use so

very quick question that will help me greatly... OR query syntax when using fields for solr dataset....

2011-02-15 Thread Ravish Bhagdev
Hi Guys, I've been trying various combinations but unable to perform a "OR" query for a specific field in my solr schema. I have a string field called myfield and I want to return all documents that have this field which either matches "abc" or "xyz" So all records that have myfield=abc and all

Re: Function Query Syntax?

2010-12-29 Thread Ahmet Arslan
> We have documents which are comprised > of: > >     - A short list of terms (about 1 to 5 terms > per document) >     - An estimate of the probability of the terms > occurrence (stored as tint) > > For each term in the index, we would like to get the result > of the following function: > >    

Function Query Syntax?

2010-12-29 Thread CRB
We have documents which are comprised of: - A short list of terms (about 1 to 5 terms per document) - An estimate of the probability of the terms occurrence (stored as tint) For each term in the index, we would like to get the result of the following function: (our estimate of t

Re: Nested Function Query Syntax

2010-07-15 Thread Rodrigo Rezende
Thank you, that works fine! On Thu, Jul 15, 2010 at 2:01 PM, Yonik Seeley wrote: > On Thu, Jul 15, 2010 at 12:49 PM, Rodrigo Rezende wrote: >> Yeah, it is redundant, but I am using that to use the solr query >> response as input of a plugin function: >> >> http://localhost:8983/solr/articles.0/s

Re: Nested Function Query Syntax

2010-07-15 Thread Yonik Seeley
On Thu, Jul 15, 2010 at 12:49 PM, Rodrigo Rezende wrote: > Yeah, it is redundant, but I am using that to use the solr query > response as input of a plugin function: > > http://localhost:8983/solr/articles.0/select/?q={!func}myFunction(query({!query > v='the query string here'})) This might be ea

Re: Nested Function Query Syntax

2010-07-15 Thread Rodrigo Rezende
Yeah, it is redundant, but I am using that to use the solr query response as input of a plugin function: http://localhost:8983/solr/articles.0/select/?q={!func}myFunction(query({!query v='the query string here'})) So in myFunction I can take the query results, with the score, and write my custom

Re: Nested Function Query Syntax

2010-07-15 Thread Yonik Seeley
On Thu, Jul 15, 2010 at 11:51 AM, Rodrigo Rezende wrote: > I solved the problem. > The correct syntax is: > > http://localhost:8983/solr/articles.0/select/?q={!func}query({!query > v='hello'})&fl=Document.title,score,&debugQuery=on query() causes a new QParser to be created. so does {!query}...

Re: Nested Function Query Syntax

2010-07-15 Thread Rodrigo Rezende
I solved the problem. The correct syntax is: http://localhost:8983/solr/articles.0/select/?q={!func}query({!query v='hello'})&fl=Document.title,score,&debugQuery=on Rodrigo On Thu, Jul 15, 2010 at 12:32 PM, Rodrigo Rezende wrote: > Hello, > > I am trying to use f

Nested Function Query Syntax

2010-07-15 Thread Rodrigo Rezende
Hello, I am trying to use function nested query syntax with solr 1.4.1, but I am not sure if I am doing in right way: I try this query and I get all documents which score is 12 http://localhost:8983/solr/articles.0/select/?q={!func}product(3,4)&fl=Document.title,score,&debugQuery=on U

Re: Help me understand query syntax of subqueries

2010-06-01 Thread Chris Hostetter
: Any idea why this query returns 0 records: : "sexual assault" AND (-obama) : while this one returns 1400 ? : "sexual assault" AND -(obama) in the first one, the parans create a boolean query consisting of a single negated clause -- but pure negative boolean queries (ie: boolean queries

Help me understand query syntax of subqueries

2010-05-25 Thread Tigi Scramble
Any idea why this query returns 0 records: "sexual assault" AND (-obama) while this one returns 1400 ? "sexual assault" AND -(obama) Some debug info: "sexual assault" AND (-obama), translates to: +text:"sexual assault" +(-text:obama), returns 0 records "sexual assault" AND -(obama), tr

Re: dismax query syntax to replace standard query

2009-12-04 Thread javaxmlsoapdev
gt; I want to form query like textField1:value AND status:(Male OR Female) >> AND >> name:"abc". I know first (textField1:value searchs against both "title" & >> "description" as that's how I have configured dixmax in the >> configuration

Re: dismax query syntax to replace standard query

2009-12-03 Thread Yonik Seeley
in the configuration) >> but not sure how I can AND other attributes (in my case "status" & "name") >> >> note; standadquery looks like following (w/o using dixmax handler) >> title:"test"description:"test"name:"Joe"statusName:(Male OR Female) >> -- >> View this message in context: >> http://old.nabble.com/dismax-query-syntax-to-replace-standard-query-tp26631725p26631725.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> >

Re: dismax query syntax to replace standard query

2009-12-03 Thread Ian Sugar
ase "status" & "name") > > note; standadquery looks like following (w/o using dixmax handler) > title:"test"description:"test"name:"Joe"statusName:(Male OR Female) > -- > View this message in context: > http://old.nabble.com/dismax-query-syntax-to-replace-standard-query-tp26631725p26631725.html > Sent from the Solr - User mailing list archive at Nabble.com. > >

dismax query syntax to replace standard query

2009-12-03 Thread javaxmlsoapdev
;title" & "description" as that's how I have configured dixmax in the configuration) but not sure how I can AND other attributes (in my case "status" & "name") note; standadquery looks like following (w/o using dixmax handler) title:"test"de

Re: How to use Lucene Query Syntax in Solr

2009-06-10 Thread Yonik Seeley
On Thu, Jun 11, 2009 at 12:31 AM, chem leakhina wrote: > Could you please tell me about how to use Lucene Query Syntax in Solr? > My query example is that, I want to use wild card (*) with phrase. Solr supports the full Lucene QueryParser syntax, but wildcards in phrase queries isn't s

How to use Lucene Query Syntax in Solr

2009-06-10 Thread chem leakhina
Hi Could you please tell me about how to use Lucene Query Syntax in Solr? My query example is that, I want to use wild card (*) with phrase. For example: I have field *text* and I want to search like *text:"Cam* Yel*"* to match with Cambodia Yellow or like *text:"Cambodia yel*&qu

Query syntax question

2009-05-15 Thread Vauthrin, Laurent
Hello, I'm having a problem with a query but I don't understand what is wrong with it. Can someone explain the following? Here are a few queries that work as expected (premium is a boolean field): premium:"false"->3004 premium:"true" ->0 -premium:"false" -

  1   2   >