Solr Index to Helio Search

2014-10-08 Thread Norgorn
When I try to simple copy index from native SOLR to Heliosearch, i get exception: Caused by: java.lang.IllegalArgumentException: A SPI class of type org.apache.lu cene.codecs.Codec with name 'Lucene410' does not exist. You need to add the corr esponding JAR file supporting this SPI to your classpa

Re: Having an issue with pivot faceting

2014-10-08 Thread Chris Hostetter
: Subject: Having an issue with pivot faceting Ok - first off -- your example request doens't include any "facet.pivot" params, so you aren't using pivot faceting .. which makes me concerned that if you aren't using the feature you think you are, or don't understand the feature you are using.

Re: Add multiple JSON documents with boost

2014-10-08 Thread Chris Hostetter
: i try to add documents to the index and boost them (hole document) but i : get this error message: : : ERROR org.apache.solr.core.SolrCore – : org.apache.solr.common.SolrException: Error parsing JSON field value. : Unexpected OBJECT_START : : Any ideas? The top level structure you are sendin

Re: Custom Solr Query Post Filter

2014-10-08 Thread Joel Bernstein
Also just took a quick look at the code. This will likely be a performance problem if you have a large result set: String classif = context.reader().document(docId).get("classification"); Instead of using the stored field, you'll want to get the BytesRef for the field using either the FieldCache

Re: Best way to index wordpress blogs in solr

2014-10-08 Thread Jack Krupansky
The LucidWorks product has builtin crawler support so you could crawl one or more web sites. http://lucidworks.com/product/fusion/ -- Jack Krupansky -Original Message- From: Vishal Sharma Sent: Tuesday, October 7, 2014 2:08 PM To: solr-user@lucene.apache.org Subject: Best way to inde

Re: Using Velocity with Child Documents?

2014-10-08 Thread Chris Hostetter
: I am trying to index a collection that has child documents. I have : successfully loaded the data into my index using SolrJ, and I have : verified that I can search correctly using the "child of" method in my : fq variable. Now, I would like to use Velocity (Solritas) to display : the pare

Re: Edismax parser and boosts

2014-10-08 Thread Jack Krupansky
Definitely sounds like a bug! File a Jira. Thanks for reporting this. What release of Solr? -- Jack Krupansky -Original Message- From: Pawel Rog Sent: Wednesday, October 8, 2014 3:57 PM To: solr-user@lucene.apache.org Subject: Edismax parser and boosts Hi, I use edismax query with q

Re: eDisMax parser and special characters

2014-10-08 Thread Jack Krupansky
Hyphen is a "prefix operator" and is normally followed by a term to indicate that the term "must not" be present. So, your query has a syntax error. The two query parsers differ in how they handle various errors. In the case of edismax, it quotes operators and then tries again, so the hyphen get

RE: Solr configuration, memory usage and MMapDirectory

2014-10-08 Thread Simon Fairey
Hi Thanks for this I will investigate further after reading a number of your points in more detail, I do have a feeling they've setup too many entries in the filter cache (1000s) so will revisit that. Just a note on numbers, those were valid when I made the post but obviously they change as th

Re: eDisMax parser and special characters

2014-10-08 Thread Lanke,Aniruddha
Sorry for a delayed reply here is more information - Schema that we are using - http://pastebin.com/WQAJCCph Request Handler in config - http://pastebin.com/Y0kP40WF Some analysis - Search term: red - Parser eDismax No results show up (+((DisjunctionMaxQuery((name_starts_with:red^9.0 | name_par

Re: Solr configuration, memory usage and MMapDirectory

2014-10-08 Thread Shawn Heisey
On 10/8/2014 4:02 AM, Simon Fairey wrote: > I'm currently setting up jconsole but as I have to remotely monitor (no gui > capability on the server) I have to wait before I can restart solr with a JMX > port setup. In the meantime I looked at top and given the calculations you > said based on you

Edismax parser and boosts

2014-10-08 Thread Pawel Rog
Hi, I use edismax query with q parameter set as below: q=foo^1.0+AND+bar For such a query for the same document I see different (lower) scoring value than for q=foo+AND+bar By default boost of term is 1 as far as i know so why the scoring differs? When I check debugQuery parameter in parsedQue

Re: Using Velocity with Child Documents?

2014-10-08 Thread Erick Erickson
Velocity is just taking the Solr response and displaying selected bits in HTML. So assuming the information you want is in the reponse packet (which you can tell just by doing the query from the browser) it's "just" a matter of pulling it out of the response and displaying it. Mostly when I starte

Re: Custom Solr Query Post Filter

2014-10-08 Thread Christopher Gross
That did the trick! Thanks Joel. -- Chris On Wed, Oct 8, 2014 at 2:05 PM, Joel Bernstein wrote: > The results are being cached in the QueryResultCache most likely. You need > to implement equals() and hashCode() on the query object, which is part of > the cache key. In your case the creds para

Re: Custom Solr Query Post Filter

2014-10-08 Thread Joel Bernstein
The results are being cached in the QueryResultCache most likely. You need to implement equals() and hashCode() on the query object, which is part of the cache key. In your case the creds param must be included in the hashCode and equals logic. Joel Bernstein Search Engineer at Heliosearch On Wed

Custom Solr Query Post Filter

2014-10-08 Thread Christopher Gross
Code: http://pastebin.com/tNjzDbmy Solr 4.9.0 Tomcat 7 Java 7 I took Erik Hatcher's example for creating a PostFilter and have modified it so it would work with Solr 4.x. Right now it works...the first time. If I were to run this query it would work right: http://localhost:8080/solr/plugintest/s

Re: solr suggester not working with shards

2014-10-08 Thread Varun Thacker
Hi, You have defined the suggester in the old way of implementing it but you do mention the SuggestComponent. Can you try it out using the documentation given here - https://cwiki.apache.org/confluence/display/solr/Suggester Secondly how are you firing your queries? On Wed, Oct 8, 2014 at 12:39

Re: WhitespaceTokenizer to consider incorrectly encoded c2a0?

2014-10-08 Thread Jack Krupansky
The source code uses that Java Character.isWhitespace method which specifically excludes the non-breaking white space characters. The Javadoc contract for WhitespaceTokenizer is too vague, especially since Unicode has so many... subtleties. Personally, I'd go along with treating non-breaking

Using Velocity with Child Documents?

2014-10-08 Thread Edwards, Joshua
Hi - I am trying to index a collection that has child documents. I have successfully loaded the data into my index using SolrJ, and I have verified that I can search correctly using the "child of" method in my fq variable. Now, I would like to use Velocity (Solritas) to display the parent rec

RE: WhitespaceTokenizer to consider incorrectly encoded c2a0?

2014-10-08 Thread Markus Jelsma
Alexandre - i am sorry if i was not clear, this is about queries, this all happens at query time. Yes we can do the substitution in with the regex replace filter, but i would propose this weird exception to be added to WhitespaceTokenizer so Lucene deals with this by itself. Markus -Origi

Re: WhitespaceTokenizer to consider incorrectly encoded c2a0?

2014-10-08 Thread Alexandre Rafalovitch
Is this a suggestion for JIRA ticket? Or a question on how to solve it? If the later, you could probably stick a RegEx replacement in the UpdateRequestProcessor chain and be done with it. As to why? I would look for the rest of the MSWord-generated artifacts, such as "smart" quotes, extra-long das

Re: SolrCloud with client ssl

2014-10-08 Thread Sindre Fiskaa
Yes, running SolrCloud without SSL it works fine with the createNodeSet param. I run this with Tomcat application server and 443 enabled. Although I receive this error message the collection and the shards gets created and the clusterstate.json updated, but the cores are missing. I manual add them

WhitespaceTokenizer to consider incorrectly encoded c2a0?

2014-10-08 Thread Markus Jelsma
Hi, For some crazy reason, some users somehow manage to substitute a perfectly normal space with a badly encoded non-breaking space, properly URL encoded this then becomes %c2a0 and depending on the encoding you use to view you probably see  followed by a space. For example: Because c2a0 is n

Re: eDisMax parser and special characters

2014-10-08 Thread Erick Erickson
There's not much information here. What's the doc look like? What is the analyzer chain for it? What is the output when you add &debug=query? Details matter. A lot ;) Best, Erick On Wed, Oct 8, 2014 at 6:26 AM, Michael Joyner wrote: > Try escaping special chars with a "\" > > > On 10/08/2014 01

Re: Filter cache pollution during sharded edismax queries

2014-10-08 Thread Charlie Hull
On 01/10/2014 09:55, jim ferenczi wrote: I think you should test with facet.shard.limit=-1 this will disallow the limit for the facet on the shards and remove the needs for facet refinements. I bet that returning every facet with a count greater than 0 on internal queries is cheaper than using th

Re: eDisMax parser and special characters

2014-10-08 Thread Michael Joyner
Try escaping special chars with a "\" On 10/08/2014 01:39 AM, Lanke,Aniruddha wrote: We are using a eDisMax parser in our configuration. When we search using the query term that has a ‘-‘ we don’t get any results back. Search term: red - yellow This doesn’t return any data back but

Re: NullPointerException for ExternalFileField when key field has no terms

2014-10-08 Thread Matthew Nigl
Thanks Markus. I initially interpreted the line "It's OK to have a keyField value that can't be found in the index" as meaning that the key field value in the external file does not have to exist as a term in the index. On 8 October 2014 23:56, Markus Jelsma wrote: > Hi - yes it is worth a t

Re: SolrCloud with client ssl

2014-10-08 Thread Jan Høydahl
Hi, I answered at https://issues.apache.org/jira/browse/SOLR-6595: * Does it work with createNodeSet when using plain SolrCloud without SSL? * Please provide the exact CollectionApi request you used when it failed, so we can see if the syntax is correct. Also, is 443 your secure port number in

RE: NullPointerException for ExternalFileField when key field has no terms

2014-10-08 Thread Markus Jelsma
Hi - yes it is worth a ticket as the javadoc says it is ok: http://lucene.apache.org/solr/4_10_1/solr-core/org/apache/solr/schema/ExternalFileField.html -Original message- > From:Matthew Nigl > Sent: Wednesday 8th October 2014 14:48 > To: solr-user@lucene.apache.org > Subject: NullPoin

NullPointerException for ExternalFileField when key field has no terms

2014-10-08 Thread Matthew Nigl
Hi, I use various ID fields as the keys for various ExternalFileField fields, and I have noticed that I will sometimes get the following error: ERROR org.apache.solr.servlet.SolrDispatchFilter û null:java.lang.NullPointerException at org.apache.solr.search.function.FileFloatSource.getFlo

How to link tables based on range values solr data-config

2014-10-08 Thread madhav bahuguna
Hi , Businessmasters Business_id Business_point 13.4 22.8 38.0 Business_Colors business_colors_id business_rating_from business_rating_to rating 1 2 5

RE: Solr configuration, memory usage and MMapDirectory

2014-10-08 Thread Simon Fairey
Hi I'm currently setting up jconsole but as I have to remotely monitor (no gui capability on the server) I have to wait before I can restart solr with a JMX port setup. In the meantime I looked at top and given the calculations you said based on your top output and this top of my java process f

Re: dismax query does not match with additional field in qf

2014-10-08 Thread Andreas Hubold
The query is not from a real use-case. We used it to test edge cases. I just asked to better understand the parser as its behavior did not match my expectations. Anyway, one use-case I can think of is a free search field for end-users where they can search in both ID and text fields including

Re: eDisMax parser and special characters

2014-10-08 Thread Aman Tandon
Hi, It seems me like there is difference in tokens generated during query and indexing time, you can tell us the your field type and the analyzers you are using to index that field. With Regards Aman Tandon On Wed, Oct 8, 2014 at 11:09 AM, Lanke,Aniruddha wrote: > We are using a eDisMax parser

Re: solr suggester not working with shards

2014-10-08 Thread rsi...@ambrac.nl
One more thing : suggest is not working with multiple cores using shard but 'did you mean' (spell check ) is working fine with multiple cores. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-suggester-not-working-with-shards-tp4163261p4163265.html Sent from the Solr