Re: Can you help with this JOIN and OR query?

2019-09-11 Thread Mikhail Khludnev
Hello, James. Right. Syntax is cumbersome q=articledate:[2018-09-04T00:00:00Z TO 2019-09-10T23:59:59Z] {!join to=id from=url v=$param}¶m=articledate:[2018-09-04T12:00:00Z TO 2019-09-10T11:59:59Z]) On Wed, Sep 11, 2019 at 9:39 AM Smith2, James wrote: > Hi there, > > I was hoping that you may be

Can you help with this JOIN and OR query?

2019-09-10 Thread Smith2, James
Hi there, I was hoping that you may be able to assist us with a search issue we're facing. Each one of these queries work on their own: articledate:[2018-09-04T00:00:00Z TO 2019-09-10T23:59:59Z] {!join to=id from=url}articledate:[2018-09-04T12:00:00Z TO 2019-09-10T11:59:59Z]) But if we try and

Re: OR query strange results

2018-11-19 Thread Danilo Tomasoni
rculosi | ... ) DisjunctionMaxQuery( | .. | .. ) just on the first sub-parenthesis of the query. why is that? is this the reason of the change in number of results? if yes, how can I create a pure-or query (everything optional?) If you are wondering why I'm adding sub-parenthesis, that

Re: OR query strange results

2018-11-15 Thread Danilo Tomasoni
uery. why is that? is this the reason of the change in number of results? if yes, how can I create a pure-or query (everything optional?) If you are wondering why I'm adding sub-parenthesis, that's to avoid the max boolean clauses error (If you know some other method that allows phrase sea

Re: OR query strange results

2018-11-15 Thread Erick Erickson
is fully positive (no - or NOT inside). > > > Query A/B are attached. > > I also tried with debug=all and I noticed > > "parsedquery": "+(DisjunctionMaxQuery((abstract_methods:tuberculosi | > ... ) DisjunctionMaxQuery( | .. | .. ) > > > just on the fi

OR query strange results

2018-11-15 Thread Danilo Tomasoni
uot;+(DisjunctionMaxQuery((abstract_methods:tuberculosi | ... ) DisjunctionMaxQuery( | .. | .. ) just on the first sub-parenthesis of the query. why is that? is this the reason of the change in number of results? if yes, how can I create a pure-or query (everything optional?) If you are wondering why I'm add

Re: OR query working on Leader Node only

2018-08-09 Thread Shawn Heisey
On 8/9/2018 7:31 PM, tapan1707 wrote: I believe correct formats for OR search query are the following: id:(id1 or id2) id:id1 or id:id2 The correct form for an OR query is an uppercase "OR".  The lowercase "or" won't do the same thing -- typically it will be int

OR query working on Leader Node only

2018-08-09 Thread tapan1707
I believe correct formats for OR search query are the following: id:(id1 or id2) id:id1 or id:id2 When I tried searching with "id:id1 or id2", it is parsing the query into "id:id1 or _text_:id2" where _text_ is the field from solr's default config set. Also, for this, I need to add the _text_ fiel

Index time or query time boost, and help with boost syntax

2016-02-22 Thread jimi.hullegard
Hi, We have a use case where we want to influence the score of the documents based on the document type, and I am a bit unsure what is the best way to achieve this. In essence we have about 100.000 documents, of about 15 different document types. And we more or less want to tweak the score diff

Re: Multivalued OR query with equal score/rankings when any one value matches

2015-05-24 Thread Troy Collinsworth
Thanks, that worked perfectly and is far simpler than extending DefaultSimilarity which I did last night. Hope this helps others who are trying to implement recommendation. The Solr in Action book gives a great start on recommendation, but lacks important details on collaborative filtering impleme

Re: Multivalued OR query with equal score/rankings when any one value matches

2015-05-23 Thread Yonik Seeley
On Sat, May 23, 2015 at 1:29 PM, Troy Collinsworth wrote: > While trying to query a multivalued String field for multiple values, when > any one value matches the score is higher for the lower value and lower for > the higher. I swapped the value order and it had no affect so it isn't > positional

Re: Multivalued OR query with equal score/rankings when any one value matches

2015-05-23 Thread Troy Collinsworth
> > Thanks, that was it. Being new to this I wouldn't have thought of that. > > docfreq for 890 is 12 > docfreq for 931 is 19 > > I found this post > > on how to disable idf which I will try. > > -Troy >

Multivalued OR query with equal score/rankings when any one value matches

2015-05-23 Thread Troy Collinsworth
While trying to query a multivalued String field for multiple values, when any one value matches the score is higher for the lower value and lower for the higher. I swapped the value order and it had no affect so it isn't positional. I want the score to be the same irrespective of the value matched

Multivalued OR query with equal score/rankings when any one value matches

2015-05-22 Thread Troy Collinsworth
While trying to query a multivalued String field for multiple values, when any one value matches the score is higher for the lower value and lower for the higher. I swapped the value order and it had no affect so it isn't positional. I want the score to be the same irrespective of the value matched

Multivalued OR query with equal score/rankings when any one value matches

2015-05-22 Thread Troy Collinsworth
While trying to query a multivalued String field for multiple values, when any one value matches the score is higher for the lower value and lower for the higher. I swapped the value order and it had no affect so it isn't positional. I want the score to be the same irrespective of the value matched

Re: Filter Query or Query

2014-11-10 Thread Erik Hatcher
Filter queries are the right thing to use here. It allows the filters to cache separately from the query and will provide, possibly dramatic, performance improvements. Don't worry about the caching concern - you'll have far fewer caches when the filter constraints are separate from the user qu

Filter Query or Query

2014-11-10 Thread Bram Van Dam
Hi folks, I have an index with hundreds of millions of documents, which users can query in various ways. Two index fields are used by the system to hide certain documents from certain users (for instance: Department A can only view documents belonging to Department A, but not Department B).

Way to determine which terms of an OR query matched each document

2014-09-29 Thread Paul Bellora
My application typically searches Solr by strictly ANDing all terms. However in some cases of too few results being returned I'd like to relax the query by switching to OR and setting an appropriate mm ("min match") value. The problem is that I want it to be clear to the user which terms are missin

Re: SOLR OR query, want 1 of the 2 results

2013-08-13 Thread Erick Erickson
t; > View this message in context: > > > http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957p4083969.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > >

Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread Mikhail Khludnev
not give a result it automatically searches with parameter > 2? > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957.html > Sent from the Solr - User mailing list archive at Nabble.com. > --

Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread Aloke Ghoshal
irst query fails... > > > On Mon, Aug 12, 2013 at 2:27 PM, PoM wrote: > > > That would actually be a decent solution, although it isn't the best i > will > > try if it gives any performance issues > > > > > > > > -- > > View this message in c

Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread Raymond Wiker
ues > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957p4083969.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread PoM
That would actually be a decent solution, although it isn't the best i will try if it gives any performance issues -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957p4083969.html Sent from the Solr - User mailing list archi

Re: SOLR OR query, want 1 of the 2 results

2013-08-12 Thread tamanjit.bin...@yahoo.co.in
Can you not get more number of results i.e. for a larger distance and sort by distance? -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp4083957p4083966.html Sent from the Solr - User mailing list archive at Nabble.com.

SOLR OR query, want 1 of the 2 results

2013-08-12 Thread PoM
t searches in a larger scale. Now, my question is: is it possible to give 2 parameters to SOLR so when parameter 1 does not give a result it automatically searches with parameter 2? -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-OR-query-want-1-of-the-2-results-tp40

Re: How to improve the Solr "OR" query performance

2013-07-03 Thread Otis Gospodnetic
Hi, Does that OR query need to be scored? Does it repeat? If answers are no and yes, you should use fq, not q. Otis -- Solr & ElasticSearch Support -- http://sematext.com/ Performance Monitoring -- http://sematext.com/spm On Wed, Jul 3, 2013 at 12:07 PM, Kevin Osborn wrote: > Also,

Re: How to improve the Solr "OR" query performance

2013-07-03 Thread Kevin Osborn
response time for "OR" query is around 1-2seconds(the "AND" query is > just about 30ms-40ms ). > > The number of hits will also be much lower for the AND-query. To check > whether it is the OR or the size of the result set that is the problem, > please try and con

Re: How to improve the Solr "OR" query performance

2013-07-03 Thread Toke Eskildsen
On Wed, 2013-07-03 at 05:48 +0200, huasanyelao wrote: > The response time for "OR" query is around 1-2seconds(the "AND" query is just > about 30ms-40ms ). The number of hits will also be much lower for the AND-query. To check whether it is the OR or the size of the resu

Re: How to improve the Solr "OR" query performance

2013-07-03 Thread Raymond Wiker
On Jul 3, 2013, at 05:48 , huasanyelao wrote: > Nowdays, I've got a urgent task to improve the "OR" query performance with > solr. > I have deployed 9 shards with solr-cloud in two server(each server : 16 > cores, 32G RAM). > The total document count: 60,

Re: How to improve the Solr "OR" query performance

2013-07-03 Thread Dotan Cohen
On Wed, Jul 3, 2013 at 6:48 AM, huasanyelao wrote: > Nowdays, I've got a urgent task to improve the "OR" query performance with > solr. > I have deployed 9 shards with solr-cloud in two server(each server : 16 > cores, 32G RAM). > The total document count: 60,

How to improve the Solr "OR" query performance

2013-07-03 Thread huasanyelao
Nowdays, I've got a urgent task to improve the "OR" query performance with solr. I have deployed 9 shards with solr-cloud in two server(each server : 16 cores, 32G RAM). The total document count: 60,000,000, total index size : 9G. According to the requirement, I have to use th

Re: OR query with null value and non-null value(s)

2013-06-07 Thread Rahul R
-- From: Rahul R > Sent: Friday, June 07, 2013 1:21 AM > To: solr-user@lucene.apache.org > Subject: Re: OR query with null value and non-null value(s) > > > Thank you Shawn. This does work. To help me understand better, why do > we need the *:* ? Shouldn't it be impl

Re: OR query with null value and non-null value(s)

2013-06-07 Thread Jack Krupansky
Yes, it SHOULD! And in the LucidWorks Search query parser it does. Why doesn't it in Solr? Ask Yonik to explain that! -- Jack Krupansky -Original Message- From: Rahul R Sent: Friday, June 07, 2013 1:21 AM To: solr-user@lucene.apache.org Subject: Re: OR query with null value an

Re: OR query with null value and non-null value(s)

2013-06-06 Thread Shawn Heisey
On 6/6/2013 11:21 PM, Rahul R wrote: > Thank you Shawn. This does work. To help me understand better, why do > we need the *:* ? Shouldn't it be implicit ? > Shouldn't > fq=(price:4+OR+(-price:[* TO *])) //does not work > mean the same as > fq=(price:4+OR+(*:* -price:[* TO *])) //works > >

Re: OR query with null value and non-null value(s)

2013-06-06 Thread Rahul R
Thank you Shawn. This does work. To help me understand better, why do we need the *:* ? Shouldn't it be implicit ? Shouldn't fq=(price:4+OR+(-price:[* TO *])) //does not work mean the same as fq=(price:4+OR+(*:* -price:[* TO *])) //works Why does Solr need the *:* there ? On Fri, Jun 7,

Re: OR query with null value and non-null value(s)

2013-06-06 Thread Shawn Heisey
On 6/6/2013 12:28 PM, Rahul R wrote: I have recently enabled facet.missing=true in solrconfig.xml which gives null facet values also. As I understand it, the syntax to do a faceted search on a null value is something like this: &fq=-price:[* TO *] So when I want to search on a particular value (f

OR query with null value and non-null value(s)

2013-06-06 Thread Rahul R
I have recently enabled facet.missing=true in solrconfig.xml which gives null facet values also. As I understand it, the syntax to do a faceted search on a null value is something like this: &fq=-price:[* TO *] So when I want to search on a particular value (for example : 4) OR null value, I would

Re: Individual Query Works fine but OR Query not worning

2013-06-02 Thread Erick Erickson
t; Sent: Sunday, June 02, 2013 5:20 PM > To: solr-user@lucene.apache.org > Subject: Re: Individual Query Works fine but OR Query not worning > > > Hi Jack, > > But the problem is after putting the backslash like this- > (NORM_BUS_NME:TEST\ TEST1\ TEST2)^35.44 OR (TRIGRAM_NORM_BU

Re: Individual Query Works fine but OR Query not worning

2013-06-02 Thread Jack Krupansky
Jack Krupansky -Original Message- From: vibhoreng04 Sent: Sunday, June 02, 2013 5:20 PM To: solr-user@lucene.apache.org Subject: Re: Individual Query Works fine but OR Query not worning Hi Jack, But the problem is after putting the backslash like this- (NORM_BUS_NME:TEST\ TEST1\ TEST2)^35.

Re: Individual Query Works fine but OR Query not worning

2013-06-02 Thread vibhoreng04
and (TRIGRAM_NORM_BUS_NME:TEST\ TEST1\ TEST2) gives 355. * So the OR query should return me 355 but it returns just one.* Additonal Info : Here Trigram is a Edge NGram multivalued field and NORM_BUS_NME is a Tokeized normalised lower case field. Vibhor Jaiswal Jack Krupansky-2 wrote > If you h

Re: Individual Query Works fine but OR Query not worning

2013-06-02 Thread Jack Krupansky
-- Jack Krupansky -Original Message- From: vibhoreng04 Sent: Sunday, June 02, 2013 3:04 PM To: solr-user@lucene.apache.org Subject: Individual Query Works fine but OR Query not worning Hi, There seems to be a problem in the querying.My query is like- (NORM_BUS_NME:TEST1\\ TEST

Individual Query Works fine but OR Query not worning

2013-06-02 Thread vibhoreng04
resultant resultet is just 1. What might be the issue with this. Please help. Vibhor Jaiswal -- View this message in context: http://lucene.472066.n3.nabble.com/Individual-Query-Works-fine-but-OR-Query-not-worning-tp4067666.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: OR query

2013-01-10 Thread Michael Jones
Systems > Ingram Content Group > (615) 213-4311 > > > -----Original Message- > From: Michael Jones [mailto:michaelj...@gmail.com] > Sent: Thursday, January 10, 2013 1:43 PM > To: solr-user@lucene.apache.org > Subject: Re: OR query > > My fields are > > mul

RE: OR query

2013-01-10 Thread Dyer, James
ce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Michael Jones [mailto:michaelj...@gmail.com] Sent: Thursday, January 10, 2013 1:43 PM To: solr-user@lucene.apache.org Subject: Re: OR query My fields are And doing name_long:"paisley, ian" (constitue

Re: OR query

2013-01-10 Thread Michael Jones
abel:(ian AND paisley) >> >> or >> >> label:(+ian +paisley) >> >> I think this is the case with edismax, which somewhat supports boolean >> queries but with caveats... >> >> You can also turn debugQuery on to figure out why things are not matchin

Re: OR query

2013-01-10 Thread Michael Jones
ure out why things are not matching. > > James Dyer > E-Commerce Systems > Ingram Content Group > (615) 213-4311 > > > -Original Message- > From: Michael Jones [mailto:michaelj...@gmail.com] > Sent: Thursday, January 10, 2013 11:48 AM > To: solr-user@lucene.apa

RE: OR query

2013-01-10 Thread Dyer, James
riginal Message- From: Michael Jones [mailto:michaelj...@gmail.com] Sent: Thursday, January 10, 2013 11:48 AM To: solr-user@lucene.apache.org Subject: Re: OR query I've tried both ways and I still get zero results with this. Even though name_long:"paisley, ian" will return res

Re: OR query

2013-01-10 Thread Michael Jones
Sent: Thursday, January 10, 2013 7:38 AM > To: solr-user@lucene.apache.org > Subject: Re: OR query > > > Thanks, I've tried doing > > > xml > > (constituencies:(ian paisley) OR label:(ian paisley) OR office:(ian > paisley)) > > name_long:"paisley, ia

Re: OR query

2013-01-10 Thread Jack Krupansky
-user@lucene.apache.org Subject: Re: OR query Thanks, I've tried doing xml (constituencies:(ian paisley) OR label:(ian paisley) OR office:(ian paisley)) name_long:"paisley, ian" and +ian +paisley "paisley, ian" name_long:"paisley, ian" But neither return any

Re: OR query

2013-01-10 Thread Michael Jones
multiple fields. > > Also be careful to put a space between each left parenthesis and field > name since there is a known bug that causes such queries to fail. > > -- Jack Krupansky > > -Original Message- From: Michael Jones > Sent: Thursday, January 10, 2013 6:24 AM

Re: OR query

2013-01-10 Thread Jack Krupansky
known bug that causes such queries to fail. -- Jack Krupansky -Original Message- From: Michael Jones Sent: Thursday, January 10, 2013 6:24 AM To: solr-user@lucene.apache.org Subject: OR query Hi, I have a query that searches through every field to find the text 'london' (cons

OR query

2013-01-10 Thread Michael Jones
Hi, I have a query that searches through every field to find the text 'london' (constituencies:(london) OR label:(london) OR name:(london) OR office:(london)) Which works fine, but when I want to filter my results. Say I want to filter down to constituencies that exactly match 'london', but also

Re: AND OR query

2012-12-21 Thread Jack Krupansky
s as specified. -- Jack Krupansky -Original Message- From: hank williams Sent: Friday, December 21, 2012 6:45 PM To: solr-user@lucene.apache.org Subject: AND OR query If I do a free text search for a keyword over all my fields using the query winston churchill town:*winston churc

AND OR query

2012-12-21 Thread hank williams
If I do a free text search for a keyword over all my fields using the query winston churchill town:*winston churchill* OR label:*winston churchill* OR name:*winston churchill* OR office:*winston churchill* I get plenty of results. But If I want to filter the searches down to towns. So Winston Ch

Re: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-21 Thread Nalini Kartha
t; Ingram Content Group > (615) 213-4311 > > > -Original Message- > From: Nalini Kartha [mailto:nalinikar...@gmail.com] > Sent: Thursday, December 20, 2012 8:53 AM > To: solr-user@lucene.apache.org > Subject: Re: Ensuring SpellChecker returns corrections which satisfy f

RE: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-20 Thread Dyer, James
led terms to be thrown out). James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Nalini Kartha [mailto:nalinikar...@gmail.com] Sent: Thursday, December 20, 2012 8:53 AM To: solr-user@lucene.apache.org Subject: Re: Ensuring SpellChecker returns

Re: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-20 Thread Nalini Kartha
--Original Message- > From: Nalini Kartha [mailto:nalinikar...@gmail.com] > Sent: Wednesday, December 19, 2012 2:06 PM > To: solr-user@lucene.apache.org > Subject: Re: Ensuring SpellChecker returns corrections which satisfy fq > params for default OR query > > Hi James, > &

RE: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-19 Thread Dyer, James
fy fq params for default OR query Hi James, Yup the example you gave about sums it up. Reason we use an OR query is that we want the flexibility of every term not having to match but when it comes to corrections we want to be sure that the ones we pick will actually return results (we message the

Re: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-19 Thread Nalini Kartha
Hi James, Yup the example you gave about sums it up. Reason we use an OR query is that we want the flexibility of every term not having to match but when it comes to corrections we want to be sure that the ones we pick will actually return results (we message the user with the corrected query so

RE: Ensuring SpellChecker returns corrections which satisfy fq params for default OR query

2012-12-19 Thread Dyer, James
roblem? James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Nalini Kartha [mailto:nalinikar...@gmail.com] Sent: Wednesday, December 19, 2012 11:20 AM To: solr-user@lucene.apache.org Subject: Ensuring SpellChecker returns corrections which satisfy fq pa

Re: Performance improvement in large OR query using boosting (also, cache doesn't work?)

2012-12-14 Thread David Radunz
nz Sent: Fri 14-Dec-2012 13:04 To: solr-user@lucene.apache.org Subject: Performance improvement in large OR query using boosting (also, cache doesn't work?) Hey Guys, I have really been enjoying Solr and I can't really blame the slowness on solr as this is a pretty insane query.

RE: Performance improvement in large OR query using boosting (also, cache doesn't work?)

2012-12-14 Thread Markus Jelsma
- > From:David Radunz > Sent: Fri 14-Dec-2012 13:04 > To: solr-user@lucene.apache.org > Subject: Performance improvement in large OR query using boosting (also, > cache doesn't work?) > > Hey Guys, > > I have really been enjoying Solr and I can't really blame

Performance improvement in large OR query using boosting (also, cache doesn't work?)

2012-12-14 Thread David Radunz
Hey Guys, I have really been enjoying Solr and I can't really blame the slowness on solr as this is a pretty insane query. However, I am a little curious why a repeated query moments later also suffers from the same load time? Anyway, the queries are: // 1st Query INFO: [] webapp=/solr

Re: Solr v4: Synonyms... better at index time or query time?

2012-11-13 Thread dm_tim
Good to know. Thanks. T -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-v4-Synonyms-better-at-index-time-or-query-time-tp4020179p4020198.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr v4: Synonyms... better at index time or query time?

2012-11-13 Thread Walter Underwood
Don't use query time synonyms. Explanation here: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory wunder On Nov 13, 2012, at 1:25 PM, dm_tim wrote: > I'm looking at the sample docs for Solr v4 and I noted something in the > schema.xml file: The field type us

Re: OR query with multiple fields

2012-10-03 Thread Steve
On Oct 3, 2012, at 3:16 PM, Michael Della Bitta wrote: > Leading off with a negation does weird things. Try > > (*:* AND NOT categoryid:387602) OR mfrid:18678 > > Michael Della Bitta > Yep, works fine in this manner. So, the problem indeed is the leading negate, even with parentheses, it ig

Re: OR query with multiple fields

2012-10-03 Thread Jack Krupansky
Subject: OR query with multiple fields If I search for q=!categoryid:3876021, solr correctly tells me there are two million plus hits. If I search for q=mfrid:18678, solr tell me there are 50,314 hits I want to combine those two results, so I try q=!categoryid:3876021 OR mfrid:18678 I would have

Re: OR query with multiple fields

2012-10-03 Thread Michael Della Bitta
Leading off with a negation does weird things. Try (*:* AND NOT categoryid:387602) OR mfrid:18678 Michael Della Bitta Appinions 18 East 41st Street, 2nd Floor New York, NY 10017-6271 www.appinions.com Where Influence Isn’t a Game On Wed, Oct 3

OR query with multiple fields

2012-10-03 Thread Steve
If I search for q=!categoryid:3876021, solr correctly tells me there are two million plus hits. If I search for q=mfrid:18678, solr tell me there are 50,314 hits I want to combine those two results, so I try q=!categoryid:3876021 OR mfrid:18678 I would have expected two million plus results,

Re: Get all matching terms of an OR query

2012-07-05 Thread Michael Jakl
sen by filter queries). After the caches are warm, the performance is of course far better. > It would be nice to have an optional search component or query parser option > that returned the analyzed term for each query term. Yes, I was thinking of reusing the analysis.jsp for that task, but c

Re: Get all matching terms of an OR query

2012-07-04 Thread Jack Krupansky
xplain uses analyzed terms. I would note that you could try to correlate the "parsedquery" with the original query since the parsed query will contain stemmed terms. It would be nice to have an optional search component or query parser option that returned the analyzed term for ea

Re: Get all matching terms of an OR query

2012-07-04 Thread Michael Jakl
Hi! On 4 July 2012 17:01, Jack Krupansky wrote: > First, "OR -ipod" needs to be written as "OR (*:* -ipod)" due to an ongoing > deficiency in Lucene query parsing, but I wonder what you really think you > are OR'ing in that clause - all documents that don't contain "ipod"? That > seems odd. Maybe

Re: Get all matching terms of an OR query

2012-07-04 Thread Jack Krupansky
want to constrain the preceding query to exclude ipod? That would be: (android OR google OR apple OR iphone) -ipod -- Jack Krupansky -Original Message- From: Michael Jakl Sent: Wednesday, July 04, 2012 8:29 AM To: solr-user@lucene.apache.org Subject: Get all matching terms of an OR qu

Get all matching terms of an OR query

2012-07-04 Thread Michael Jakl
Hi, is there an easy way to get the matches of an OR query? If I'm searching for "android OR google OR apple OR iphone OR -ipod", I'd like to know which of these terms document X contains. I've been using debugQuery and tried to extract the info from the explain inform

Re: ampersands in index or query

2012-01-19 Thread Erick Erickson
Another approach is to use the stopwords and an appropriate analyzer chain. Then both the & and "and" would be removed from the indexing stream and the query process and it would "just work".. Best Erick On Thu, Jan 19, 2012 at 8:09 AM, Gora Mohanty wrote: > On Thu, Jan 19, 2012 at 7:48 PM, Nich

Re: ampersands in index or query

2012-01-19 Thread Gora Mohanty
On Thu, Jan 19, 2012 at 7:48 PM, Nicholas Fellows wrote: > I have some data in solr > > where the text string could potentially be > > "Vic & Bobs greatest hits" > > how can i ensure that when a user query is made > for "Vic and Bobs greatest hits" , a match is made? > > this also needs to work th

ampersands in index or query

2012-01-19 Thread Nicholas Fellows
I have some data in solr where the text string could potentially be "Vic & Bobs greatest hits" how can i ensure that when a user query is made for "Vic and Bobs greatest hits" , a match is made? this also needs to work the other way round. i've not found any useful information about this scena

Re: analyzer type - does it default to "index" or "query"?

2011-05-26 Thread Koji Sekiguchi
(11/05/26 13:23), Andy wrote: Hi, When specifying an analyzer for a fieldType, I can say type="index" or type="query" What if I don't spcify the type for an analyzer? Does it default to "index" or "query" or both? Both. koji -- http://www.rondhuit.com/en/

analyzer type - does it default to "index" or "query"?

2011-05-25 Thread Andy
Hi, When specifying an analyzer for a fieldType, I can say type="index" or type="query" What if I don't spcify the type for an analyzer? Does it default to "index" or "query" or both? Thanks.

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

2011-02-15 Thread Ravish Bhagdev
;>> 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 wor

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

2011-02-15 Thread Erick Erickson
nsitive match of whole field. Use some variant >>> of "text" if this is not what you want. >>> >>> -- >>> Jan Høydahl, search solution architect >>> Cominvent AS - www.cominvent.com >>> >>> On 15. feb. 2011, at 14.39, Ravish Bhagd

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

2011-02-15 Thread Ravish Bhagdev
al words inside the >> field, only an exact case sensitive match of whole field. Use some variant >> of "text" if this is not what you want. >> >> -- >> Jan Høydahl, search solution architect >> Cominvent AS - www.cominvent.com >> >> On 15. feb. 201

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
quot; if this is not what you want. >> >> -- >> Jan Høydahl, search solution architect >> Cominvent AS - www.cominvent.com >> >> On 15. feb. 2011, at 14.39, Ravish Bhagdev wrote: >> >>> Hi Guys, >>> >>> I've been trying va

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

2011-02-15 Thread Ravish Bhagdev
> Jan Høydahl, search solution architect > Cominvent AS - www.cominvent.com > > On 15. feb. 2011, at 14.39, Ravish Bhagdev wrote: > > > Hi Guys, > > > > I've been trying various combinations but unable to perform a "OR" query > for > > a sp

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
f whole field. Use some variant of "text" if this is not what you want. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 15. feb. 2011, at 14.39, Ravish Bhagdev wrote: > Hi Guys, > > I've been trying various combinations but unable to perform

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 al

schema design question: OR query over 2 fields or on a multivalued field?

2009-12-26 Thread Andy
I have documents that represent Companies. Each company has a field "Internet" which is a boolean field, True means the company is an Internet company. There's also another field "location" which is the city the company is located in, eg. "Austin" or "Houston". A company can be both an Internet

Re: complex OR query not working

2009-07-02 Thread Chris Hostetter
: I want to execute the following query: : (spacegroupID:g*) OR (!userID:g*). First: "!" is not a negation operator in the lucene/solr query parser : In above syntax (!userID:g*) gives results correctly. ...i don't think it's doing what you think it's doing. second: boolean queries can't

RE: complex OR query not working

2009-06-30 Thread Radha C.
- From: Ashish P [mailto:ashish.ping...@gmail.com] Sent: Tuesday, June 30, 2009 4:10 PM To: solr-user@lucene.apache.org Subject: complex OR query not working I want to execute the following query: (spacegroupID:g*) OR (!userID:g*). What I want to do here is select all docs where spacegroupID

complex OR query not working

2009-06-30 Thread Ashish P
D:g*) gives results correctly. But after adding OR the results are not correct, they seem to be like from result of (spacegroupID:g*) remove the results of userID:g*. Any idea on how to achieve the goal. Thanks, Ashish -- View this message in context: http://www.nabble.com/complex-

Re: AND vs. OR query performance

2008-05-12 Thread Lars Kotthoff
AIL PROTECTED]> wrote: > In general, AND will perform better than OR (because of skipping in > the scorers). But if the number of documents matching the AND is > close to that matching the OR query, then skipping doesn't gain you > much and probably has a little more overhead.

Re: AND vs. OR query performance

2008-05-12 Thread Yonik Seeley
In general, AND will perform better than OR (because of skipping in the scorers). But if the number of documents matching the AND is close to that matching the OR query, then skipping doesn't gain you much and probably has a little more overhead. -Yonik On Sun, May 11, 2008 at 4:04 AM,

Re: result limit / diversity with an OR query

2008-05-12 Thread Mike Klaas
On 12-May-08, at 9:31 AM, s d wrote: Hi,I have a query similar to: x OR y OR z and i want to know if there is a way to make sure i get 1 result with x, 1 result with y and one with z ? The easiest way is to execute three separate queries: +x y z x +y z x y +z -Mike

Re: result limit / diversity with an OR query

2008-05-12 Thread Francisco Sanmartin
the easy answer is: x AND y AND z . This will return ALL the documents containing x,y and z. But if you want also get the documents containin AT LEAST one of the three, try this: (x AND y AND z)^10 OR (x OR y OR z) (the idea is boosting the AND query) this way, the documents that "x and y

result limit / diversity with an OR query

2008-05-12 Thread s d
Hi,I have a query similar to: x OR y OR z and i want to know if there is a way to make sure i get 1 result with x, 1 result with y and one with z ? Alternatively, is it possible to achieve through facets? Thanks, S.

AND vs. OR query performance

2008-05-11 Thread Lars Kotthoff
Dear list, during some performance experiments I have found that queries with ORed search terms are significantly faster than queries with ANDed search terms, everything else being equal. Does anybody know whether this is the generally expected behaviour? Thanks, Lars