Re: Weird Problem (possible bug?) with german stemming and wildcard search

2014-10-15 Thread Thomas Michael Engelke
Thank you very much, this information is worht it's weight in gold. So far, we've used the asterisk method because it seemed logical and straight-forward. We will slowly migrate to a version using EdgeNGramFilterFactory. Thanks a bunch. Am 07.10.2014 14:42 schrieb Alexandre Rafalovitch: On

fuzzy search and edismax: how to do not sum up

2014-10-15 Thread elisabeth benoit
Hello all, We are using solr 4.2.1 (but planning to switch to solr 4.10 very soon). We are trying to do approximative search using ~ operator. We use catchall_light field without stemming (to do not mix fuzzy and stemming) We send a request to solr using fuzzy operator on non "frequent" words

How does one specify which collections to use?

2014-10-15 Thread Aaron Lewis
Hi, I'm using PHP client here: http://php.net/manual/en/class.solrquery.php I couldn't figure out how to use "collection2" instead of "collection1", I don't see such options in constructor either. Anyone know that? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Pri

Re: Delete in Solr based on foreign key (like SQL delete from … where id in (select id from…)

2014-10-15 Thread Matthew Nigl
Absolutely, using Mikhail's code would be the first thing I would do. You can see the details in SOLR-6234 and https://github.com/m-khl/lucene-join-solr-query-parser Otherwise, the only alternative I can think of (without reindexing) would be to run the select query as provided, returning the ID's

Re: How does one specify which collections to use?

2014-10-15 Thread Matthew Nigl
Hi Aaron, You would need to set 'path' in the options array when you create a SolrClient. http://php.net/manual/en/solrclient.construct.php Regards, Matt On 15 October 2014 19:31, Aaron Lewis wrote: > Hi, > > I'm using PHP client here: > http://php.net/manual/en/class.solrquery.php > > I coul

[SOLVED] Re: How does one specify which collections to use?

2014-10-15 Thread Aaron Lewis
Thanks Matt. I misunderstood that option ;-) On Wed, Oct 15, 2014 at 6:43 PM, Matthew Nigl wrote: > Hi Aaron, > > You would need to set 'path' in the options array when you create a > SolrClient. > > http://php.net/manual/en/solrclient.construct.php > > Regards, > Matt > > On 15 October 2014 19:3

Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Aaron Lewis
Hi, I'm trying to do a partial update, according to https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents I can use 'inc' command to do that, but I couldn't find relevant PHP API here: http://php.net/manual/en/class.solrquery.php Anyone know what function should I use? I t

Re: How can I pass in query request parameter at search time and know of it in my query analyzer/tokenizer?

2014-10-15 Thread Ilia Sretenskii
You can implement your own kind of SeachHandler to pass your custom request parameters to keep the common parameters clean. http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java As you can see, the SearchHandler.handleRequestBody()

LBHttpSolrServer is creating new instance of HttpSolrServer in request(Req req) method

2014-10-15 Thread sachinpkale
Following is the line from the request(Req req) method of LBHttpSolrServer class: *HttpSolrServer server = makeServer(serverStr);* Won't it create new instance of HttpSolrServer for every request? -- View this message in context: http://lucene.472066.n3.nabble.com/LBHttpSolrServer-is-

Run a query via SolrJ using Request URL

2014-10-15 Thread Dickinson, Cliff
I'm faily new to Solr and have run into an issue that I cannot figure out how to solve. I'm trying to implement a Save Search requirement similar to bookmarking to allow the same search to be run in the future. Once the original search is executed from within a Spring app, I use the ClientUt

Solr Synonyms, Escape space in case of multi words

2014-10-15 Thread David Philip
Hi All, I remember using multi-words in synonyms in Solr 3.x version. In case of multi words, I was escaping space with back slash[\] and it work as intended. Ex: ride\ makers, riders, rider\ guards. Each one mapped to each other and so when I searched for ride makers, I obtained the search r

Re: Solr Synonyms, Escape space in case of multi words

2014-10-15 Thread David Philip
contd.. expectation was that the "ride care" should not have split into two tokens. It should have been as below. Please correct me/point me where I am wrong. Input : ridemakers, ride makers, ridemakerz, ride makerz, ride\mark, ride\ care o/p ridemakersrideridemakerzrideridemarkridemakersmak

Re: Solr Synonyms, Escape space in case of multi words

2014-10-15 Thread David Philip
Sorry, analysis page clip is getting trimmed off and hence the indention is lost. Here it is : ridemakers | ride | ridemakerz | ride | ridemark | ride | makers | makerz| care expected: ridemakers | ride | ridemakerz | ride | ridemark | ride | makers | makerz| *ride care* On Wed, Oct 15, 2014

Re: Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Matthew Nigl
Hi Aaron, I do not believe that there is direct support for atomic updates with this API. Other libraries such as Solarium do support this. However, one option is that you could generate the atomic update XML in code and send it via a raw request: http://php.net/manual/en/solrclient.request.php

Combine boosts

2014-10-15 Thread Corey Gerhardt
Using Edismax. Is it possible to have multiple functions in a boost? For example boost = (if(not(BUS_IS_TOLL_FREE),log(10),product(log(10),0.1))) & if(exists(query({!v="BUS_CITY:saskatoon"})),20,1) Thanks, Corey

RE: Combine boosts

2014-10-15 Thread Corey Gerhardt
I realized the problem is my code. A person can send multiple boost parameters. I have a quirk in that I'm using solrnet but can probably find a work around. Corey -Original Message- From: Corey Gerhardt [mailto:corey.gerha...@directwest.com] Sent: October-15-14 11:34 AM To: Solr Use

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-15 Thread S.L
Tim, Thanks for the suggestion. I have rerun the query by adding shards.info=true and debug= track. I have included the xml data for both teh scenarios below , thin happens intermittently on SolrCloud 4.10.1 , with a replication factor of 2 and 3 shards (6 cores) , I get result in one execution o

ECMASCript Nashorn tutorial

2014-10-15 Thread William Bell
Since we are moving to Java 8, how about we support Nashorn? http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/ -- Bill Bell billnb...@gmail.com cell 720-256-8076

Re: ECMASCript Nashorn tutorial

2014-10-15 Thread Chris Hostetter
: Since we are moving to Java 8, how about we support Nashorn? : : http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/ define "support" ? what exactly do you have in mind ? The two places i can think of in solr that support scripting already support Nashorn by default (assuming it's p

[SOLVED] Re: Does the SolrQuery class support 'inc' command?

2014-10-15 Thread Aaron Lewis
Thanks Matt. I got it worked with the '' command. On Wed, Oct 15, 2014 at 11:42 PM, Matthew Nigl wrote: > Hi Aaron, > > I do not believe that there is direct support for atomic updates with this > API. Other libraries such as Solarium do support this. > > However, one option is that you could gen

Does Solr support this?

2014-10-15 Thread Aaron Lewis
Hi, I'm trying to a "if first query is empty then do a second query", e.g if this returns no rows: title:"XX" AND subject:"YY" Then do a title:"XX" I can do that with two queries. But I'm wondering if I can merge them into a single one? -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-15 Thread S.L
Look at the logging information I provided below , looks like the results are only being returned back for this solrCloud cluster if the request goes to one of the two replicas of a shard. I have verified that numDocs in the replicas for a given shard is same but there is difference in the maxDoc

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-15 Thread Shawn Heisey
On 10/15/2014 9:26 PM, S.L wrote: Look at the logging information I provided below , looks like the results are only being returned back for this solrCloud cluster if the request goes to one of the two replicas of a shard. I have verified that numDocs in the replicas for a given shard is same b

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-15 Thread S.L
Shawn, Yes , I tried those two queries with distrib=false , I get 0 results for first and 1 result for the second query( (i.e. server 3 shard 2 replica 2) consistently. However if I run the same second query (i.e. server 3 shard 2 replica 2) with distrib=true, I sometimes get a result and somet

Re: SolrCloud 4.7 not doing distributed search when querying from a load balancer.

2014-10-15 Thread Shawn Heisey
On 10/15/2014 10:24 PM, S.L wrote: Yes , I tried those two queries with distrib=false , I get 0 results for first and 1 result for the second query( (i.e. server 3 shard 2 replica 2) consistently. However if I run the same second query (i.e. server 3 shard 2 replica 2) with distrib=true, I som

How should one search on all fields? *:XX does not work

2014-10-15 Thread Aaron Lewis
Hi, I'm trying to match all fields, so I tried this: *:"XX" Is that a bad practice? It does seem to be supported either -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33

How to use less than and greater than in data-config file of solr

2014-10-15 Thread madhav bahuguna
I have two tables and i want to link them using greater than and less than condition.They have nothing in common,the only way i can link them is using range values.Iam able to do this in Mysql but how do i do this in solr in my data-config.xml file This is how my data-config file looks

Problem with DIH

2014-10-15 Thread Jay Potharaju
Hi I 'm using DIH for updating my core. I 'm using store procedure for doing a full/ delta imports. In order to avoid running delta imports for a long time, i limit the rows returned to a max of 100,000 rows at a given time. On an average the delta import runs for less than 1 minute. For the last

Re: Solr Synonyms, Escape space in case of multi words

2014-10-15 Thread Rajani Maski
Hi David, I think you should have the filter class with tokenizer specified. [As shown below] * So your field type should be as shown below: On Wed, Oct 15, 2014 at 7:25 PM, David Philip wrote: > Sorry, analysis page clip is getting trimmed off an