Re: Solr Json Facet

2018-05-09 Thread Kojo
Only for the records, I will describe here what I did to solve this problem. This is specific for those who are using python/requests and Solr json facet api. I would like to ask another question regarding json facet. > > With GET method, i was used to use many fq on the same query, each one > wi

Re: Solr Json Facet

2018-05-08 Thread Erick Erickson
Follow the instructions here: http://lucene.apache.org/solr/community.html#mailing-lists-irc. You must use the _exact_ same e-mail as you used to subscribe. If the initial try doesn't work and following the suggestions at the "problems" link doesn't work for you, let us know. But note you need to

Re: Solr Json Facet

2018-05-08 Thread Asher Shih
unsubscribe On Tue, May 8, 2018 at 9:19 PM, Kojo wrote: > Everything working now. The code is not that clean and I am rewriting, so I > don't know exactly what was wrong, but something malformed. > > I would like to ask another question regarding json facet. > > With GET method, i was used to use

Re: Solr Json Facet

2018-05-08 Thread Kojo
Everything working now. The code is not that clean and I am rewriting, so I don't know exactly what was wrong, but something malformed. I would like to ask another question regarding json facet. With GET method, i was used to use many fq on the same query, each one with it's own tag. It was worki

Re: Solr Json Facet

2018-05-08 Thread Yonik Seeley
Looks like some sort of proxy server inbetween the python client and solr server. I would still check first if the output from the python client is correctly escaped/encoded HTTP. One easy way is to use netcat to pretend to be a server: $ nc -l 8983 And then send point the python client at that an

Re: Solr Json Facet

2018-05-08 Thread Kojo
Thank you all. I tried escaping but still not working Yonik, I am using Python Requests. It works if my fq is a single word, even if I use double quotes on this single word without escaping. This is the HTTP response: response.content '\n\n400 Bad Request\n\nBad Request\nYour browser sent a req

Re: Solr Json Facet

2018-05-08 Thread Yonik Seeley
On Tue, May 8, 2018 at 1:36 PM, Kojo wrote: > If I tag the fq query and I query for a simple word it works fine too. But > if query a multi word with space in the middle it breaks: Most likely the full query is not getting to Solr because of an HTTP protocol error (i.e. the request is not encoded

Re: Solr Json Facet

2018-05-08 Thread Shawn Heisey
On 5/8/2018 11:36 AM, Kojo wrote: > If I tag the fq query and I query for a simple word it works fine too. But > if query a multi word with space in the middle it breaks: > > {'q':'*:*', 'fl': '*', > 'fq':'{!tag=city_colaboration_tag}city_colaboration:"College > Station"', 'json.facet': '{city_cola

Re: Solr Json Facet

2018-05-08 Thread Mikhail Khludnev
Single backslash escaping works for me. On Tue, May 8, 2018 at 8:36 PM, Kojo wrote: > Hello, > recently I have changed the way I get facet data from Solr. I was using GET > method on request but due to the limit of the query I changed to POST > method. > > Bellow is a sample of the data I send t

Re: Solr JSON facet range out of memory exception

2016-04-11 Thread Toke Eskildsen
On Mon, 2016-04-11 at 13:31 +0430, Ali Nazemian wrote: > http: //10.102.1.5: 8983/solr/edgeIndex/select?q=*%3A*&fq=stat_owner_id: > 122952&rows=0&wt=json&indent=true&facet=true&json.facet=%7bresult: %7b > type: range, > field: stat_date, > start: 146027158386, > end: 1460271583864, > gap: 1 > %

Re: Solr JSON facet range out of memory exception

2016-04-11 Thread Ali Nazemian
Dear Yonik, Hi, The entire index has 50k documents not the faceted one. It is just a test case right now! I used the JSON facet API, here is my query after encoding: http: //10.102.1.5: 8983/solr/edgeIndex/select?q=*%3A*&fq=stat_owner_id: 122952&rows=0&wt=json&indent=true&facet=true&json.facet=%

Re: Solr JSON facet range out of memory exception

2016-04-10 Thread Yonik Seeley
On Sun, Apr 10, 2016 at 3:47 AM, Ali Nazemian wrote: > Dear all Solr users/developeres, > Hi, > I am going to use Solr JSON facet range on a date filed which is stored as > long milis. Unfortunately I got java heap space exception no matter how > much memory assigned to Solr Java heap! I already t