RE: Problem loading my codec sometimes

2013-09-25 Thread Scott Schneider
Thanks for your quick response! My jar was in solr/lib. I removed all the lib directives from solrconfig.xml, but I still get the error. My solr.xml doesn't have sharedLib. By the way, I am running Solr 4.4.0 with most of the default example files (including solr.xml). My schema.xml and

Re: Problem loading my codec sometimes

2013-09-25 Thread Alexandre Rafalovitch
On Wed, Sep 25, 2013 at 2:10 PM, Scott Schneider scott_schnei...@symantec.com wrote: I still wonder why it can create a new index using my codec, but not load an index previously created with my codec. Could be a sequence of classpath initialization. For example, the write/read functions

Re: Hash range to shard assignment

2013-09-25 Thread lochri
Great, thank you !!! -- View this message in context: http://lucene.472066.n3.nabble.com/Hash-range-to-shard-assignment-tp4091204p4091889.html Sent from the Solr - User mailing list archive at Nabble.com.

Solr Plugin for Kettle.

2013-09-25 Thread Srini.daruna
Hi Everyone, Is there a way to index data into Solr from kettle.? If so, could you please tell me how to do that.? -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Plugin-for-Kettle-tp4091877.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: SolrCloud High Availability during indexing operation

2013-09-25 Thread Erick Erickson
And do any of the documents have the same uniqueKey, which is usually called id? Subsequent adds of docs with the same uniqueKey replace the earlier one. It's not definitive because it changes as merges happen, old copies of docs that have been deleted or updated will be purged, but what does

Re: How to sort over all documents by score after Result Grouping / Field Collapsing

2013-09-25 Thread Erick Erickson
Nope, there's nothing in Solr that does this for you already, you need to do something custom. You could write a component that did this as the last step of writing the data to the client, but that just moves the action from your front-end to custom code in Solr that you have to maintain too, so I

Re: SOLR grouped query sorting on numFound

2013-09-25 Thread Erick Erickson
Hmmm, just specifying sort= is _almost_ what you want, except it sorts by the value of fields in the doc not numFound. this shouldn't be hard to do on the client though, but you'd have to return all the groups... FWIW, Erick On Tue, Sep 24, 2013 at 1:11 PM, Brent Ryan brent.r...@gmail.com

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Erick Erickson
I've sometimes seen this handled by clever tokenizing. For Bill Rogers, index (untokenized) something like Bill|Bill Rogers Rogers|Bill Rogers Your suggester then is a simple term lookup (see TermsComponent) which is quite fast. What you _don't_ get is autocorrect. But if you use terms.prefix,

Re: Soft commit and flush

2013-09-25 Thread Erick Erickson
Why do you care? Curiosity or are you trying to find a behavior you can count on? because soft commits are about visibility, hard commits are about durability. Meaning you can't count on a soft commit writing anything to disk at all. I suspect in your tests the soft commit had nothing to do with

Re: SolrCloud setup - any advice?

2013-09-25 Thread Erick Erickson
H, I confess I haven't had a chance to play with this yet, but have you considered docValues for some of your fields? See: http://wiki.apache.org/solr/DocValues And just to tantalize you: Since Solr4.2 to build a forward index for a field, for purposes of sorting, faceting, grouping,

Re: SOLR grouped query sorting on numFound

2013-09-25 Thread Brent Ryan
ya, that's the problem... you can't sort by numFound and it's not feasible to do the sort on the client because the grouped result set is too large. Brent On Wed, Sep 25, 2013 at 6:09 AM, Erick Erickson erickerick...@gmail.comwrote: Hmmm, just specifying sort= is _almost_ what you want,

Re: searching within documents

2013-09-25 Thread Erick Erickson
Because your text field type is completely broken. for instance, at indexing time lowercasing before using WordDelimiterFilterFactory means that one of the purposes of WDFF, breaking tokens up on upper/lower case transitions can't happen. Which you apparently intend since you have

Sum function causing error in solr

2013-09-25 Thread Tanu Garg
0 down vote favorite Hi I m trying sum function in solr val:sum(kcmeta/bookmark/count,10.00) itis giving error: lst name=error str name=msgundefined field: kcmeta/str int name=code400/int /lst My field name is kcmeta/bookmark/count Please suggest how to resolve this. --

Re: SOLR grouped query sorting on numFound

2013-09-25 Thread Erick Erickson
but if it's too large on the client, wouldn't it also be too large on the server? After all, you have to hold the entire set of groups in memory since you can't know ahead of time which will be the largest. Or at least the counts of them all. I suppose you could do some two-pass process where you

Re: Sum function causing error in solr

2013-09-25 Thread Erick Erickson
Don't name your fields that way. The general advice is to only name your fields as though they were Java variables. The field name you're using is too easily confused with a mathematical operation after all. Personally, I only use lower-case, underscore, and perhaps numbers to avoid surprises

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
I've used a separated core for storing suggestions, based on what I see in: https://github.com/cominvent/autocomplete. You can check the blog post on www.cominvent.com/2012/01/25/super-flexible-autocomplete-with-solr/‎. This is really flexible, on the downside it does not use the suggester

AND/OR logic

2013-09-25 Thread PAVAN
Hi, I have situation that if user enters any string to search then i need to display the results in the following way. 1. It has to match exact string what he entered. (or) 2. It has to split the string and search for individual keywords(for every string) and it has to

Custom Request Handlers

2013-09-25 Thread PAVAN
Hi, I am new to solr Can anyone suggest me how can i write my own custom handlers. Because i need to filter queries based on 4 to 5 conditions. -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-Request-Handlers-tp4091936.html Sent from the Solr - User mailing

autocomplete_edge type split words

2013-09-25 Thread elisabeth benoit
Hello, I am using solr 4.2.1 and I have a autocomplete_edge type defined in schema.xml fieldType name=autocomplete_edge class=solr.TextField analyzer type=index charFilter class=solr.MappingCharFilterFactory mapping=mapping-ISOLatin1Accent.txt/ tokenizer

Re: searching within documents

2013-09-25 Thread Nutan
Okay thanks, I will surely read that page. Thanks a lot. On Wed, Sep 25, 2013 at 4:21 PM, Erick Erickson [via Lucene] ml-node+s472066n4091910...@n3.nabble.com wrote: Because your text field type is completely broken. for instance, at indexing time lowercasing before using

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
Thanks. On Wed, Sep 25, 2013 at 1:46 PM, Ing. Jorge Luis Betancourt Gonzalez jlbetanco...@uci.cu wrote: I've used a separated core for storing suggestions, based on what I see in: https://github.com/cominvent/autocomplete. You can check the blog post on

Re: Sum function causing error in solr

2013-09-25 Thread Tanu Garg
Thanks erick I know we should name variable as java variables. But theses are the predefined variables. I cant rename it. Provide me the solution with this constraint. -- View this message in context:

Re: Sum function causing error in solr

2013-09-25 Thread Jack Krupansky
Escape any special characters in field names with backslash. -- Jack Krupansky -Original Message- From: Tanu Garg Sent: Wednesday, September 25, 2013 8:45 AM To: solr-user@lucene.apache.org Subject: Re: Sum function causing error in solr Thanks erick I know we should name variable

Re: Sum function causing error in solr

2013-09-25 Thread Yonik Seeley
On Wed, Sep 25, 2013 at 6:40 AM, Tanu Garg tanugarg2...@gmail.com wrote: My field name is kcmeta/bookmark/count You can always use the field function to handle whacky field names... unquoted if it's simple enough, or quoted if it's not. field(kcmeta/bookmark/count) or

Re: AND/OR logic

2013-09-25 Thread Jack Krupansky
Is your requirement specifying that none of the alternative results should be shown if there are any primary results, or that the primary results should be shown first, or that both are acceptable? You could do a phrase query for the full list of terms, and then do a second query with OR if

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
I followed the instructions, I am able to browse to http://localhost:8983/solr/ac/browse?q=cedebugQuery=true; but I am not getting any suggestions (typed in c in Find Textbox). I wonder if loading the example data is the problem? The response I get after executing the script feed-ac.sh (step

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
The response does not show any error, can you confirm that the data is in solr? you should be able to see the numDoc stats in the admin UI. Which version of Solr are you using? I believe that the example was tested on Solr 3.x at least at the time I use it. Regards, - Mensaje original

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
I simple query through admin (*:*) confirms the data is exists. The version I'm working with is solr 4.4.0. The autocomplete manual refers to 3.x. I wonder of this is the problem? On Wed, Sep 25, 2013 at 4:01 PM, Ing. Jorge Luis Betancourt Gonzalez jlbetanco...@uci.cu wrote: The response does

Solr sorting situation!

2013-09-25 Thread Gustav
Hey guys, I know that sorting in Solr works as a cascade, but i'm kind stuck in a rough situation: I've got the following sort fields in a Product: ProductSequence(0~99 default=99),ProductName(text_general),ProductType(0~1),ProductHasPrinciples(0~1),ProductInStock(0~1),ProductPrice(0~999,99)

SOLR: Searching on OpenNLP fields is unstable

2013-09-25 Thread rashi gandhi
HI, I am working on OpenNLP integration with SOLR. I have successfully applied the patch (LUCENE-2899-x.patch) to latest SOLR source code (branch_4x). I have designed OpenNLP analyzer and index data to it. Analyzer declaration in schema.xml is as fieldType name=nlp_type

Solr 4.4 Import from CSV to Multi-value field - Adds quote on last value

2013-09-25 Thread Mike L.
  Solr Family,       I'm a Solr 3.6 user who just pulled down 4.4 yesterday and noticed something a bit odd when importing into a multi-valued field. I wouldn't be surprised if there's a user-error on my end but hopefully there isn't a bug. Here's the situation.   I created some test data

RE: Problem loading my codec sometimes

2013-09-25 Thread Chris Hostetter
: I still wonder why it can create a new index using my codec, but not : load an index previously created with my codec. In solrconfig.xml, I : specify the CodecFactory along with the package name, whereas the codec : name that is read from the index file has no package name. Could that :

Re: Solr 4.4 Import from CSV to Multi-value field - Adds quote on last value

2013-09-25 Thread Mike L.
  Nevermind, I figured it out. Excel was applying a hidden quote on the data. Thanks anyway. From: Mike L. javaone...@yahoo.com To: solr-user@lucene.apache.org solr-user@lucene.apache.org Sent: Wednesday, September 25, 2013 11:32 AM Subject: Solr 4.4 Import from CSV to Multi-value field - Adds

RE: Problem loading my codec sometimes

2013-09-25 Thread Scott Schneider
Ah, I fixed it. I wasn't properly including the org.apache.lucene.codecs.Codec file in my jar. I wasn't sure if it was necessary in Solr, since I specify my factory in solrconfig.xml. I think that's why I could create a new index, but not load an existing one. Scott -Original

RE: Problem loading my codec sometimes

2013-09-25 Thread Chris Hostetter
: Ah, I fixed it. I wasn't properly including the : org.apache.lucene.codecs.Codec file in my jar. I wasn't sure if it was : necessary in Solr, since I specify my factory in solrconfig.xml. I : think that's why I could create a new index, but not load an existing : one. Ah

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
Perhaps this could be an issue, I know that this works perfectly in solr 3.6 (this is the one I was using). Currently I don't have a solr 4.4 to do some tests, but what have been done in that core should work in solr 4.4, perhaps there is a setting that need some tweaking but it's impossible of

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
Could it be the jquery library that is the problem? I opened up solr-home/ac/conf/velocity/head.vm with an editor and I see a reference to the jquery library but I can't seem to find the directory referenced, line: script type=text/javascript src=#{url_for_solr}/admin/jquery-1.4.3.min.js. Do

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
Try quering the core where the data has been imported, something like: http://localhost:8983/solr/suggestions/select?q=uc In the previous URL suggestions is the name I give to the core, so this should change, if you get results, then the problem could be the jquery dependency. I don't remember

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
That seems to work. I get back an xml containing a bunch of suggestions. Can we agree that it's jquery that's the problem? On Wednesday, September 25, 2013, Ing. Jorge Luis Betancourt Gonzalez jlbetanco...@uci.cu wrote: Try quering the core where the data has been imported, something like:

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
As far as I can tell it is. You can check that by seeing the Console logs on your browser (chrome, firefox, etc.). There should be an error saying that the $ function it's not found. In any case I'll try to set up a testing environment here, but I can only use solr 4.1, which I have here. I

Cross index join query performance

2013-09-25 Thread Peter Keegan
I'm doing a cross-core join query and the join query is 30X slower than each of the 2 individual queries. Here are the queries: Main query: http://localhost:8983/solr/mainindex/select?q=title:java QTime: 5 msec hit count: 1000 Sub query: http://localhost:8983/solr/subindex/select?q=+fld1:[0.1 TO

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
Not yet but I do see the $ not found in console. On Wednesday, September 25, 2013, Ing. Jorge Luis Betancourt Gonzalez jlbetanco...@uci.cu wrote: As far as I can tell it is. You can check that by seeing the Console logs on your browser (chrome, firefox, etc.). There should be an error saying

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread Ing. Jorge Luis Betancourt Gonzalez
That's and indication that jQuery can't be loaded, and without jQuery the autocomplete plugin won't work. This plugin is used to show the popup list that show up at the bottom of the input. - Mensaje original - De: JMill apprentice...@googlemail.com Para: solr-user@lucene.apache.org

Re: Implementing Solr Suggester for Autocomplete (multiple columns)

2013-09-25 Thread JMill
I guess we found the culprit. On Wednesday, September 25, 2013, Ing. Jorge Luis Betancourt Gonzalez jlbetanco...@uci.cu wrote: That's and indication that jQuery can't be loaded, and without jQuery the autocomplete plugin won't work. This plugin is used to show the popup list that show up at the

How to always tokenize on underscore?

2013-09-25 Thread Greg Preston
[Using SolrCloud 4.4.0] I have a text field where the data will sometimes be delimited by whitespace, and sometimes by underscore. For example, both of the following are possible input values: Group_EN_1000232142_blah_1000232142abc_foo Group EN 1000232142 blah 1000232142abc foo What I'd like

Re: How to always tokenize on underscore?

2013-09-25 Thread Jack Krupansky
Use the char filter instead: http://lucene.apache.org/core/4_4_0/analyzers-common/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.html -- Jack Krupansky -Original Message- From: Greg Preston Sent: Wednesday, September 25, 2013 5:43 PM To: solr-user@lucene.apache.org

Re: How to always tokenize on underscore?

2013-09-25 Thread Greg Preston
This is exactly what I needed. Thank you! -Greg On Wed, Sep 25, 2013 at 2:48 PM, Jack Krupansky j...@basetechnology.com wrote: Use the char filter instead: http://lucene.apache.org/core/4_4_0/analyzers-common/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.html -- Jack

Re: AND/OR logic

2013-09-25 Thread PAVAN
Hi Jack, Thank you for giving reply I am doing my configuration in the following way. Can you please check it and give some suggestion if i need any changes based on my requirement. i am storing the query string in the following way. If q=a b c d e f s=a+b+c+d+e+f s1=a+b+c+d+e s2=f