Re: Solr query help

2017-08-18 Thread Tim Casey
You can add a ~3 to the query to allow the order to be reversed, but you will get extra hits. Maybe it is a ~4, i can never remember on phrases and reversals. I usually just try it. Alternatively, you can create a custom query field for what you need from dates. For example, if you want to sear

Re: Solr query help

2017-08-18 Thread Webster Homer
What field types are you using for your dates? Have a look at: https://cwiki.apache.org/confluence/display/solr/Working+with+Dates On Thu, Aug 17, 2017 at 10:08 AM, Nawab Zada Asad Iqbal wrote: > Hi Krishna > > I haven't used date range queries myself. But if Solr only supports a > particular da

Re: Solr query help

2017-08-17 Thread Nawab Zada Asad Iqbal
Hi Krishna I haven't used date range queries myself. But if Solr only supports a particular date format, you can write a thin client for queries, which will convert the date to solr's format and query solr. Nawab On Thu, Aug 17, 2017 at 7:36 AM, chiru s wrote: > Hello guys > > I am working on

Solr query help

2017-08-17 Thread chiru s
Hello guys I am working on Apache solr and I am stuck with a use case. The input data will be in the documents like 2017/03/15 in 1st document, 2017/04/15 in 2nd doc, 2017/05/15 in 3rd doc, 2017/06/15 in 4th doc so on But while fetching the data it should fetch like 03/15/2017 for the first

Re: solr query help

2017-02-02 Thread Shawn Heisey
On 2/2/2017 6:16 AM, deepak.gha...@mediawide.com wrote: > I am writting query for getting response from specific index content first. > eg. > http://192.168.200.14:8983/solr/mypgmee/select?q=*blood*&fq=id:(*/939/* OR > **)&fl=id&wt=json&indent=true > > In above query I am getting response, Means

solr query help

2017-02-02 Thread deepak . ghayal
Hello Sir, I am writting query for getting response from specific index content first. eg. http://192.168.200.14:8983/solr/mypgmee/select?q=*blood*&fq=id:(*/939/* OR **)&fl=id&wt=json&indent=true In above query I am getting response, Means suppose I Get 4 result for course "939" out of 10. It

Re: Need solr query help

2013-05-14 Thread Amit Nithian
ance and so the shop > is > within delivery range of the location specified. > > smsolr > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Need-solr-query-help-tp4061800p4062603.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: Need solr query help

2013-05-13 Thread smsolr
cene.472066.n3.nabble.com/Need-solr-query-help-tp4061800p4062603.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Need solr query help

2013-05-13 Thread smsolr
ete all shops so you can edit the file to play with it and repost the shops:- http://localhost:8983/solr/update?stream.body=name:shop&commit=true smsolr -- View this message in context: http://lucene.472066.n3.nabble.com/Need-solr-query-help-tp4061800p4062591.html Sent from the So

Need solr query help

2013-05-09 Thread Abhishek tiwari
We are doing spatial search. with following logic. a) There are shops in a city . Each provides the facility of home delivery b) each shop has different max_delivery_distance . Now my query is suppose some one is searching from point P1 with radius R. User wants the result of shops those can del

Re: About Solr Query help

2010-11-25 Thread Ahmet Arslan
--- On Thu, 11/25/10, Himanshu Tatariya wrote: > From: Himanshu Tatariya > Subject: About Solr Query help > To: solr-user@lucene.apache.org > Date: Thursday, November 25, 2010, 4:02 PM > Hello, > > Greetings ! > > I am working on one project which is used solr sea

About Solr Query help

2010-11-25 Thread Himanshu Tatariya
Hello, Greetings ! I am working on one project which is used solr search facilities and its is good for searching and indexing it. I have one query regarding searching facets, so please guide me. I search color just for example : "*attr_color_sm:blue*" which i send in query but now I want p

Re: solr query help alpha numeric and not

2009-11-05 Thread Joel Nylund
Avlesh, thanks those worked, for somre reason I never got your mail, found it in one of the list archives though. thanks again Joel On Nov 5, 2009, at 9:08 PM, Avlesh Singh wrote: Didn't the queries in my reply work? Cheers Avlesh On Fri, Nov 6, 2009 at 4:16 AM, Joel Nylund wrote: Hi yes

Re: solr query help alpha numeric and not

2009-11-05 Thread Avlesh Singh
Didn't the queries in my reply work? Cheers Avlesh On Fri, Nov 6, 2009 at 4:16 AM, Joel Nylund wrote: > Hi yes its a string, in the case of a title, it can be anything, a letter a > number, a symbol or a multibyte char etc. > > Any ideas if I wanted a query that was not a letter a-z or a number

Re: solr query help alpha numeric and not

2009-11-05 Thread Joel Nylund
Hi yes its a string, in the case of a title, it can be anything, a letter a number, a symbol or a multibyte char etc. Any ideas if I wanted a query that was not a letter a-z or a number 0-9, given that its a string? thanks Joel On Nov 4, 2009, at 9:10 AM, Jonathan Hendler wrote: Hi Joel,

Re: solr query help alpha numeric and not

2009-11-04 Thread Jonathan Hendler
Hi Joel, The ID is sent back as a string (instead of as an integer) in your example. Could this be the cause? - Jonathan On Nov 4, 2009, at 9:08 AM, Joel Nylund wrote: Hi, I have a field called firstLetterTitle, this field has 1 char, it can be anything, I need help with a few queries on

solr query help alpha numeric and not

2009-11-04 Thread Joel Nylund
Hi, I have a field called firstLetterTitle, this field has 1 char, it can be anything, I need help with a few queries on this char: 1.) I want all NON ALPHA and NON numbers, so any char that is not A-Z or 0-9 I tried: http://localhost:8983/solr/select?q=NOT%20firstLetterTitle:0%20TO%209%20

Re: Solr Query help - sorting

2009-08-25 Thread Erik Earle
hanks guys! - Original Message From: Erik Hatcher To: solr-user@lucene.apache.org Sent: Tuesday, August 25, 2009 11:26:58 AM Subject: Re: Solr Query help - sorting If you're using DataImportHandler, a custom (Java or script) transformer could do this. Also an UpdateProcessor could do it

Re: Solr Query help - sorting

2009-08-25 Thread Erik Hatcher
I can because the app and db that Solr is indexing are not really the best place to add this type of functionality. - Original Message From: Koji Sekiguchi To: solr-user@lucene.apache.org Sent: Tuesday, August 25, 2009 4:04:29 AM Subject: Re: Solr Query help - sorting Hi E

Re: Solr Query help - sorting

2009-08-25 Thread Erik Earle
ality. - Original Message From: Koji Sekiguchi To: solr-user@lucene.apache.org Sent: Tuesday, August 25, 2009 4:04:29 AM Subject: Re: Solr Query help - sorting Hi Erik Earle, Ahh, I read your mail too fast... Erik Hatcher's method should work. Thanks! Koji Erik Hatcher wrote: > You could

Re: Solr Query help - sorting

2009-08-25 Thread Koji Sekiguchi
Hi Erik Earle, Ahh, I read your mail too fast... Erik Hatcher's method should work. Thanks! Koji Erik Hatcher wrote: You couldn't sort on a multiValued field though. I'd simply index a max_side field, and have the indexing client add a single valued field with max(length,width) to it. The

Re: Solr Query help - sorting

2009-08-25 Thread Erik Hatcher
You couldn't sort on a multiValued field though. I'd simply index a max_side field, and have the indexing client add a single valued field with max(length,width) to it. Then sort on max_side. Erik On Aug 25, 2009, at 4:00 AM, Constantijn Visinescu wrote: make a new multivalued fi

Re: Solr Query help - sorting

2009-08-25 Thread Constantijn Visinescu
make a new multivalued field in your schema.xml, copy both width and length into that field, and then sort on that field ? On Tue, Aug 25, 2009 at 5:40 AM, erikea...@yahoo.com wrote: > Clever... but if more than one row adds up to the same value I may get the > wrong order (like 50, 50 and 10, 90

Re: Solr Query help - sorting

2009-08-24 Thread erikea...@yahoo.com
Clever... but if more than one row adds up to the same value I may get the wrong order (like 50, 50 and 10, 90) I need a max function but the one provided only compares against a constant. Sent from my iPhone On Aug 24, 2009, at 6:15 PM, Koji Sekiguchi wrote: How about using sum() FunctionQu

Re: Solr Query help - sorting

2009-08-24 Thread Koji Sekiguchi
How about using sum() FunctionQuery, via: http://localhost:8983/solr/select/?q=_val_%3A%22sum%28width%2Clength%29%22 Thanks, Koji Erik Earle wrote: Suppose I have a database of rectangle attributes that I have indexed in Solr and I want to get the top 10 widest or longest rectangles from on

Solr Query help - sorting

2009-08-24 Thread Erik Earle
Suppose I have a database of rectangle attributes that I have indexed in Solr and I want to get the top 10 widest or longest rectangles from one query. name | width | length A | 100| 10 B | 10 | 90 C | 80 | 10 ... My indexed fields are: name, width, length I