Re: Count multivalued field issue

2016-01-06 Thread GW
When dealing with Solr data you need to decide whether or not to go programming. when I want to count a multi-value I go programming. $count = array_count($array); On 6 January 2016 at 08:43, marotosg wrote: > Hi, > > I am trying to add a new field to my schema to add

Re: AJAX access to Solr Server

2015-12-25 Thread GW
If you are using Linux a simple one liner in IP tables iptables -I INPUT \! --src www.yourwebserver.com -m tcp -p tcp --dport 8983 -j DROP If windows, you can do something similar otherwise it is very easy for anyone to delete all your documents with

Re: AJAX access to Solr Server

2015-12-25 Thread GW
I would put in a basic iptables statement to allow only your webserver to prevent http://172.16.0.22:8983/solr/products/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E=true On 25 December 2015 at 14:58, Eric Dain wrote: > Thanks, that is very

Re: AJAX access to Solr Server

2015-12-26 Thread GW
server to a standstill. About ten years ago I was working on a contract. The competitor that lost the bid did a email DOS attack on me after they took out a whole bunch car adds (hot deals) in the local paper. My email was f###'d and my phone was ringing off the hook. Cheers, GW On 25 December

Re: AJAX access to Solr Server

2015-12-26 Thread GW
they want to support the full range of query operations. > An attacker can still put nasty function queries in the query box enough > times to make a Solr server crawl. > > Doug > > On Saturday, December 26, 2015, GW <thegeofo...@gmail.com> wrote: > > > Yes, your proxy

Re: Solr5.X document loss in splitting shards

2015-12-28 Thread GW
L encoding. I was using Curl at one time and I noticed some strange results w/o url encoding What are you using to write your client? Best, GW On 27 December 2015 at 19:35, Shawn Heisey <apa...@elyograg.org> wrote: > On 12/26/2015 11:21 AM, Luca Quarello wrote: > > I have a

Newb from the iron age on a mission:Solr deployment

2015-11-24 Thread GW
I hope I am in the context of this mailing list, Thanks in advance. A little background I learned computers with 6800 machine assembly. With decades of RDBMS jumping into the Solr/Hadoop/Hbase is still a pilgrimage through hell. I think I didn't need to learn hadoop or hbase. So, I have a

Re: Recommended api/lib to search Solr using PHP

2016-05-30 Thread GW
I would say look at the urls for searches you build in the query tool In my case http://172.16.0.1:8983/solr/#/products/query When you build queries with the Query tool, for example an edismax query, the URL is there for you to copy. Use the url structure with curl in your

Re: Manage schema.xml via Solrj?

2016-01-08 Thread GW
are looking at a lot of work for little gain. Best, GW On 7 January 2016 at 21:36, Bob Lawson <bwlawson...@gmail.com> wrote: > I want to programmatically make changes to schema.xml using java to do > it. Should I use Solrj to do this or is there a better way? Can I use > Solrj t

Re: alternative forum for SOLR user

2016-02-01 Thread GW
I personally hate email lists.. But this one is actually pretty good. Excellent actually. I'm a convert. Joined it with Gogle mail, forward all to a folder and search it. Piece of cake. On 1 February 2016 at 11:08, Jean-Jacques MONOT wrote: > Thank you for the very quick

Re: FW: SolrCloud App Unit Testing

2016-03-19 Thread GW
score=json"; break; } $my_data = fetchContent($url); Data goes into the $my_data as a JSON string in this case. /// your forward facing App can be in Apache round robin in front of a Solr system. This gives you insane scalability in the client app and the Solr service. Hope that

Re: Set router.field in unit tests

2016-04-29 Thread GW
Not exactly suer what you mean but I think you are wanting to change your schema.xml to restart solr On 29 April 2016 at 06:04, Markus Jelsma wrote: > Hi - any hints to share? > > Thanks! > Markus > > > > -Original message- > > From:Markus Jelsma

Re: issues doing a spatial query

2016-04-29 Thread GW
know what they are talking about should not post. Many thanks for your response. GW On 29 April 2016 at 00:40, David Smiley <david.w.smi...@gmail.com> wrote: > Hi. > This makes sense to me. The point 49.8,-97.1 is in your query box. The > box is lower-left to upper-rig

need help with keyword spamming

2016-04-23 Thread GW
a recommended keyword list I could use to count hits before I index. It's a painful thought. I want to be able to detect people that are trying to do keyword spamming. So my question is: Is there some kind of FM that I'm not aware of? Thanks in advance, GW

issues doing a spatial query

2016-04-24 Thread GW
catalog/product/cache/0/image/9df78eab33525d08d6e5fb8d27136e95/a/c/ace000a_1.jpg;, "keywords": "Eyewear ", "data_size": "851,564", "category": "Eyewear", "final_price_without_tax": "295,USD", "image_url": [ "http://magento.spidersilk.co/media/catalog/product/a/c/ace000a_1.jpg;, "http://magento.spidersilk.co/media/catalog/product/a/c/ace000b_1.jpg; ], "locations": [ "37.4463603,-122.1591775", "42.5857514,-82.8873787", "41.6942622,-86.2697108", "49.8522263,-97.1390697" ], "_version_": 1532418847465799700 }, Thanks, GW

Re: need help with keyword spamming

2016-04-23 Thread GW
ammer sites won't be linked to > very heavily by trusted sites. > > If you just mean spamming like lots of unique keywords, length > normalization was built just for this reason: to bias relevance toward less > verbose and more specific matches > > Hope that helps > > Doug > O

Is there an equivalent to an SQL "select distinct" in Solr

2016-05-13 Thread GW
Let's say I have 10,000 documents and there is a field named "category" and lets say there are 200 categories but I do not know what they are. My question: Is there a query/filter that can pull a list of distinct categories? Thanks in advance, GW

Re: Is there an equivalent to an SQL "select distinct" in Solr

2016-05-13 Thread GW
<apa...@elyograg.org> wrote: > On 5/13/2016 6:48 AM, GW wrote: > > Let's say I have 10,000 documents and there is a field named "category" > and > > lets say there are 200 categories but I do not know what they are. > > > > My question: Is there a

Apache/PHP/Perl round robin to Solrcloud question

2016-07-31 Thread GW
loud is populated by a custom spider written in Perl which I imagine I will only post to the leader. Am I going sideways? Many thanks, GW

Re: solr error

2016-08-02 Thread GW
been doing my gets with Curl because I had a similar issue 5-6 months ago. I'll post those functions in a hour or so. Best, GW On 2 August 2016 at 01:46, Midas A <test.mi...@gmail.com> wrote: > Jürgen, > we are using Php solrclient and getting above exception . what could be

Re: solr error

2016-08-02 Thread GW
/ End sitck in include in your page $data = array("id" => "55i", "name" => " WTF Hagrid"); $json_data_string = json_encode($data); JSONpost($solrserver, $collection, $json_data_string); ?> On 2 August 2016 at 08:57, GW <thegeo

Re: Inconsistent results with solr admin ui and solrj

2016-08-13 Thread GW
No offense intended, but you are looking at a problem with your work. You need to explain what you are doing not what is happening. If you are trying to use PHP and the latest PECL/PEAR, it does not work so well. It is considerably older than Solr 6.1. This was the only issue I ran into with 6.1.

Re: solr date range query

2016-08-16 Thread GW
This query would indicate two multivalued fields This query will return results if you put in a value for the field eventEnddate of 10 years ago as long as the field eventStartdate is satisfied. On 16 August 2016 at 08:16, solr2020 wrote: >

Re: SolrJ for .NET / C#

2016-08-16 Thread GW
The client that comes with PHP is lame. If installed you should un-install php5-solr and install the Pecl/Pear libs which are good to the end of 5.x and 6.01. It tanks with 6.1. I defer to my own effort of changing everything to plain old REST requests. On 16 August 2016 at 10:39, GW <thege

Re: SolrJ for .NET / C#

2016-08-16 Thread GW
As long as you are .NET you will be last in line. You try using the REST API. All you get with a .NET/C# lib is a wrapper for the REST API. On 16 August 2016 at 09:08, Joe Lawson wrote: > All I have seen is SolrNET, forks of SolrNET and people using

Advanced Document Routing Questions

2017-01-29 Thread GW
ing to production. I'm about to write script for something that I still feel I am week in concept. When I'm done and I totally understand, I promise to publish a nice A - Z REST deployment HowTo for HA with class examples in (PHP,Perl,Python)/curl. Best regards, GW

Re: solr date range query

2016-08-16 Thread GW
Am I to assume these dates are stored in a single multivalued field? On 16 August 2016 at 07:51, solr2020 wrote: > Hi, > > We have list of events with events start date and end date.for eg: > event1 starts @ 2nd Aug 2016 ends @ 3rd Aug 2016 > event2 starts @ 4th Aug 2016

Re: solr date range query

2016-08-16 Thread GW
can you send the query you are using? On 16 August 2016 at 08:03, solr2020 wrote: > yes. dates are stored as a single valued date field > > > > -- > View this message in context: http://lucene.472066.n3. > nabble.com/solr-date-range-query-tp4291918p4291920.html > Sent from

Re: SolrJ for .NET / C#

2016-08-16 Thread GW
and collection discovery. It would be nice if some companies made /contrib > offerings for different languages that could be better maintained. > > Most REST clients are stuck in a pre-SolrCloud world or master/slave > configuration and that paradigm is going away. > > On Tue, Aug 1

Re: Heatmap in JSON facet API

2016-10-30 Thread GW
If we are talking about the same kind of heat maps you might want to look at the TomTom map API for a quick and dirty yet solid solution. Just supply a whack of coordinates and let TomTom do the work. The Heat maps will zoom in and de-cluster. Example below.

Re: Need help to update multiple documents

2016-11-24 Thread GW
I've not looked at your file. If you are really thinking update, there is no such thing. You can only replace the entire document or delete it. On 23 November 2016 at 23:47, Reddy Sankar wrote: > Hi Team , > > > > Facing issue to update multiple document in SOLAR at

Re: unable to write docs

2016-11-21 Thread GW
Check out Prateeks answer first and use commit wisely. 99% chance it's a commit issue. On 21 November 2016 at 08:42, Alexandre Rafalovitch wrote: > What's the specific error message for 2). And did it only happen once > or once in a while? > >

Re: How-To: Secure Solr by IP Address

2016-11-04 Thread GW
I run a small solrcloud on a set of internal IP address. I connect with a routed OpenVPN so I hit solr on 10.8.0.1:8983 from my desktop. Only my web clients are on public IPs and only those clients can talk to the inside cluster. That's how I manage things... On 4 November 2016 at 09:27, David

Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-14 Thread GW
ud My thoughts are that I send my requests to the Solr instances on the Zookeeper Ensemble. Am I missing something? What can I say.. I'm software oriented and a little hardware challenged. Thanks in advance, GW

Re: Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-14 Thread GW
Apache on all my solr instances. On 14 December 2016 at 07:08, Dorian Hoxha <dorian.ho...@gmail.com> wrote: > See replies inline: > > On Wed, Dec 14, 2016 at 11:16 AM, GW <thegeofo...@gmail.com> wrote: > > > Hello folks, > > > > I'm about to set

Re: Max vertical scaling in your experience ? (1 instance/server)

2016-12-16 Thread GW
ZK says is available verses a round robin. Will keep you posted on my roll out if you like. Best, GW On 16 December 2016 at 03:31, Dorian Hoxha <dorian.ho...@gmail.com> wrote: > Hello searchers, > > I'm researching solr for a project that would require a max-inserts(10M/s

Re: Max vertical scaling in your experience ? (1 instance/server)

2016-12-16 Thread GW
while a ZK aware app will know that node is shite. On 16 December 2016 at 07:20, Dorian Hoxha <dorian.ho...@gmail.com> wrote: > On Fri, Dec 16, 2016 at 12:39 PM, GW <thegeofo...@gmail.com> wrote: > > > Dorian, > > > > From my reading, my belief is th

Re: Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-15 Thread GW
it go in the next few days. Best, GW On 15 December 2016 at 09:52, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Dec 15, 2016 at 12:37 PM, GW <thegeofo...@gmail.com> wrote: > > While my client is all PHP it does not use a solr client. I wanted to > stay >

Re: Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-15 Thread GW
. I guess I could put the solr connect requests in my clients into a try loop, looking for successful connections by name before any action. Many thanks, GW On 15 December 2016 at 04:46, Dorian Hoxha <dorian.ho...@gmail.com> wrote: > See replies inline: > > On Wed, Dec 14,

Re: Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-18 Thread GW
feel like I am on the right path. Thanks and Best, GW On 18 December 2016 at 09:53, Dorian Hoxha <dorian.ho...@gmail.com> wrote: > On Sun, Dec 18, 2016 at 3:48 PM, GW <thegeofo...@gmail.com> wrote: > > > Yeah, > > > > > > I'll look at the

Re: Has anyone used linode.com to run Solr | ??Best way to deliver PHP/Apache clients with Solr question

2016-12-18 Thread GW
screw with some shards. If I am correct I will post again. Best, GW On 15 December 2016 at 12:34, Shawn Heisey <apa...@elyograg.org> wrote: > On 12/14/2016 7:36 AM, GW wrote: > > I understand accessing solr directly. I'm doing REST calls to a single > > machine. > &

Do I need a replication factor if I run an Hadoop file system?

2016-12-20 Thread GW
on a journaled file system. Thanks, GW

SQL rpt_location question

2017-03-24 Thread GW
Dear reader, I've found that using the distinct clause gives me the list I want. I also have a multivalued rpt_location in the collection that I'd like to use in the filter. Is this possible in any way shape of form? Many thanks in advance, Greg

Re: keywords not found - google like feature

2017-04-13 Thread GW
After reading everyone's post, my thoughts are sometimes things are better achieved with smoke and mirrors. I achieved something similar by measuring my scores with no keyword hits. I wrote simple jquery script to do a CSS strike through on the returned message if the score was poor, + I returned

Re: MongoDb vs Solr

2017-08-04 Thread GW
The people @ Lucidworks would beg to disagree but I know exactly what you are saying Walter. A simple flat file like a cardx is fine and dandy as a Solrcloud noSQL DB. I like to express it as knowing when to fish and when to cut bait. As soon as you are in the one - many or many - many world a

Re: MongoDb vs Solr

2017-08-05 Thread GW
ucture it has is an array. Something like mongo can do arrays hashes > arrays of hashes etc, it's actually json based. But it can't search well as > a search engine can. > >> > >> There is no one tool. Use each for their own abilities. > >> > >> > >>&g

Re: MongoDb vs Solr

2017-08-05 Thread GW
On 5 August 2017 at 06:23, GW <thegeofo...@gmail.com> wrote: > Watch their videos > > On 4 August 2017 at 23:26, Walter Underwood <wun...@wunderwood.org> wrote: > >> MarkLogic can do many-to-many. I worked there six years ago. They use >> search engine index stru

Re: MongoDb vs Solr

2017-08-05 Thread GW
Insults for Walter only.. sorry.. On 5 August 2017 at 06:28, GW <thegeofo...@gmail.com> wrote: > For The Guardian, Solr is the new database | Lucidworks > <https://www.google.ca/url?sa=t=j==s=web=2=rja=8=0ahUKEwiR1rn6_b_VAhVB7IMKHWGKBj4QFgguMAE=https%3A%2F%2Flucidworks.com%2F2010%

Re: Fetch a binary field

2017-08-17 Thread GW
Had the same issue with long base64_encoded images. Binary & string failed. Set my field type to field type ignored. Doesn't seem right (or wrong) but it worked. On 17 August 2017 at 03:58, Rick Leir wrote: > On 2017-08-12 04:19 AM, Barbet Alain wrote: > >> Hi ! >> >>

Re: Why do Solr nodes go into Recovery status

2017-06-06 Thread GW
this mistake in the beginning and had similar problems under load. GW On 5 June 2017 at 22:32, Erick Erickson <erickerick...@gmail.com> wrote: > bq: This means that technically the replica nodes should not fall behind > and do > not have to go into recovery mode > > Well, true if

Re: Deploy Solr to Production: guides, best practices

2017-10-19 Thread GW
Not a Windows user but you should be able to just install it and surf port 8983. Once installed it should show in services https://www.norconex.com/how-to-run-solr5-as-a-service-on-windows/ On 19 October 2017 at 07:18, maximka19 wrote: > Rick Leir-2 wrote > > Maximka >