Re: Filtered search for subset of ids

2012-01-06 Thread solr_noob
Hello, I'm new to SOLR. I am facing the same set of problem to solve. The idea is to search for key phrase(s) within a set of documents. I understand the query syntax somewhat. What if the list of document ids to search gets to about say, 1 documents? what is the best way to craft the query?

Re: prevent PlainTextEntityProcessor to encode text

2012-01-06 Thread meghana
Aslo i found that XPathEntityProcessor doesn't encode text. but if i try to import data using XpathEnityProcessor it does not import data for my Mfld field (non-multivalued). below what i have tried. String will be like

Re: XPathEntityProcessor append text in foreach

2012-01-06 Thread meghana
I have String like below format --- this is solr!!WelcomeHello test I want it to convert it in below format using XPathEntityProcessor --- 12: this is solr!! 18: Welcome 35: Hello test I had used PlainTextEnityProcessor with ScriptTransfor

Re: Query regarding solr custom sort order

2012-01-06 Thread Bernd Fehling
Hi Uma, i don't understand what you're looking for. Do you need to sort on fields of type double with precision 2 or what? In your example you were talking about 1 2 3 4 5 6 7 8 9 10 11 12 13 14. Regards, Bernd Am 06.01.2012 07:11, schrieb umaswayam: Hi Bernd, The column which comes f

Re: Filtered search for subset of ids

2012-01-06 Thread Lance Norskog
If you want the Nth result in a result set, that would be: start=N&rows=1 A document 'id' is field containing a unique value for a document. It is not normally used for relevance scoring. You would instead search for id:value On Thu, Jan 5, 2012 at 9:55 PM, solr_noob wrote: > Hello, > > I'm new

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Sven Maurmann
Hi, from your snippets the reason is not completely clear. There are a number of reasons for not starting up the server. For example in case of a faulty configuration of the core (solrconfig.xml, schema.xml) the core does not start and you get the reported error. Best, Sven Am 06.01.2012 um

Re: XPathEntityProcessor append text in foreach

2012-01-06 Thread Erick Erickson
I think you would get much farther along if you thought about a SolrJ program that read in the documents, parsed them and then constructed the Solr document to send to Solr. This is much more flexible than trying to force complex manipulations through XPathEntityProcessor, which does not support th

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
Also note that an EmbeddedSolrServer is for a specific core, not for all cores (and thus solr.xml is not used). My hunch is that you need to point to the core's home directory, not to the parent of solr.xml. Erik On Jan 6, 2012, at 03:06 , Sven Maurmann wrote: > Hi, > > from your s

Re: Filtered search for subset of ids

2012-01-06 Thread Mikhail Khludnev
Hello, It seem you are talking about huge disjunctive filter: fq=id:(1 2 3 4 5). I have two suggestions. I. don't do that. It has the following drawbacks: * it takes too much to parse such long query. as result, search will cost O(query-len) instead of O(numFound) (without scoring/sorting) *

Re: "Indexing Failed.Rolled back all changes" Issue

2012-01-06 Thread Mikhail Khludnev
Hello Raj, AFAIK dataimport.properties absence is just a warning, but not show-stopper (import process write it itself). I can suggest you to play around dataimport.jsp it has interactive debug support, which is pretty useful at most times. Also, consider to set org.apache.solr.handler.dataimport

Re: doing snapshot after optimize - rotation parameter?

2012-01-06 Thread Torsten Krah
To answer myself after looking at the code: public static final String NUMBER_BACKUPS_TO_KEEP = "numberToKeep"; So 7 should do it :-). regards smime.p7s Description: S/MIME cryptographic signature

xpathentityprocessor with flattern true

2012-01-06 Thread vrpar...@gmail.com
Hello all, i want to get whole xmldata into one field, for that i am using xpathentityprocessor with flattern=true but still it doesn't work as expected. e.g. sample xml isabcabc bcd

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 3:06 AM, Sven Maurmann wrote: > Hi, > > from your snippets the reason is not completely clear. There are a number of > reasons for not starting up the > server. For example in case of a faulty configuration of the core > (solrconfig.xml, schema.xml) the core does > not sta

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 8:06 AM, Erik Hatcher wrote: > Also note that an EmbeddedSolrServer is for a specific core, not for all > cores (and thus solr.xml is not used).  My hunch is that you > need to point > to the core's home directory, not to the parent of solr.xml. Oh, interesting. The exam

Re: Pattern: Is there a method of resolving multivalued date ranges into a single document?

2012-01-06 Thread David Smiley (@MITRE.org)
See https://issues.apache.org/jira/browse/SOLR-2155?focusedCommentId=13114839&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13114839 with my response following Geert-Jan's question. ~ David - Author: http://www.packtpub.com/apache-solr-3-enterprise-search-serv

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
On 1/6/2012 9:57 AM, Phillip Rhodes wrote: > On Fri, Jan 6, 2012 at 3:06 AM, Sven Maurmann wrote: >> Hi, >> >> from your snippets the reason is not completely clear. There are a number of >> reasons for not starting up the >> server. For example in case of a faulty configuration of the core >> (

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
2012/1/6 Yury Kats : > > Have you tried passing core name (collection1) to the c'tor, instead > of the empty string? Yep, but that gives the same error (with the core name appended) such as "no such core: collection1" Phil

Re: SOLR results case

2012-01-06 Thread Dave
Hi Juan, You're correct, the search results casing is working fine. This is my mistake, I didn't specify that I'm using the Suggester component in order to drive an auto-completion field on a website. Is there anyway to change the output of the Suggester to maintain case? Everything is coming out

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Yury Kats
On 1/6/2012 10:19 AM, Phillip Rhodes wrote: > 2012/1/6 Yury Kats : >> >> Have you tried passing core name (collection1) to the c'tor, instead >> of the empty string? > > Yep, but that gives the same error (with the core name appended) such > as "no such core: collection1" That probably means the

Re: Round Robin concept in distributed Solr

2012-01-06 Thread Erick Erickson
People usually just have the slaves know about each other via the configuration files (here's a good reference as well as a gotcha, http://lucene.472066.n3.nabble.com/how-to-have-quot-shards-quot-parameter-by-default-td884519.html). The idea is that you configure a search handler to automatically

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Erik Hatcher
On Jan 6, 2012, at 10:46 , Yury Kats wrote: > On 1/6/2012 10:19 AM, Phillip Rhodes wrote: >> 2012/1/6 Yury Kats : >>> >>> Have you tried passing core name (collection1) to the c'tor, instead >>> of the empty string? >> >> Yep, but that gives the same error (with the core name appended) such >>

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
2012/1/6 Yury Kats : > > That probably means the home is not set properly, so it can't find solr.xml > Well, all the docs mention doing is this bit, which I have: System.setProperty('solr.solr.home', '/usr/servers/solr/apache-solr-3.5.0/example/heceta'); I've also tried it the other way mentioned

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:03 AM, Erik Hatcher wrote: > > Again, EmbeddedSolrServer (unless I'm gravely mistaken!) doesn't do > multicore.  It's for a single core.  If you want multiple cores > supported... created multiple EmbeddedSolrServer instances.   You point the > instance to the core's "h

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Christopher Childs
Multicore does work with EmbeddedSolrServer. It's what we use in our application. solr.xml is also relevant for configuring the cores. We do not do it in quite the same manner that Phillip is describing, though. Our CoreContainer is initialized by SolrDispatchFilter. After the core container is

Re: "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
On Fri, Jan 6, 2012 at 11:28 AM, Christopher Childs wrote: > Multicore does work with EmbeddedSolrServer. It's what we use in our > application. > > solr.xml is also relevant for configuring the cores. We do not do it in quite > the same manner that Phillip is describing, though. Our CoreContain

Re: Detecting query errors with SolrJ

2012-01-06 Thread Shawn Heisey
On 1/5/2012 7:25 AM, Erick Erickson wrote: Somewhere you have access to a CommonsHttpSolrServer, right? There's a getHttpClient call that returns an org.apache.commons.httpclient that might get you the information you need. If I have a multithreaded app that shares a single HttpClient between

Synonym configuration not working?

2012-01-06 Thread Michael Lissner
I'm trying to set up some basic synonyms. The one I've been working on is: us, usa, united states My understanding is that adding that to the synonym file will allow users to search for US, and get back documents containing usa or united states. Ditto for if a user puts in usa or united states

Re: Detecting query errors with SolrJ

2012-01-06 Thread Michael Sokolov
See SOLR-141; there are a few patches - currently all you get back is a 400 error with no actual information equivalent to what is logged in the solr exception. On 1/6/2012 12:46 PM, Shawn Heisey wrote: On 1/5/2012 7:25 AM, Erick Erickson wrote: Somewhere you have access to a CommonsHttpSolrS

facet count per group?

2012-01-06 Thread mladen
Hi guys, I have bunch of simple documents, only differentiated by "rating filed": Robert eab213a7-b5f7-a8cf-71f3-2b7929eb1965 Dagge 0 7 rdagge IT Sourcing Strategy 131 Larry efa1c145-d244-ed07-09d9-6af43f3f35a0 Gutman 0 6 lgutman I have led major global deployments of technology and process, Gl

Re: Highlighting with prefix queries and maxBooleanClause

2012-01-06 Thread Michael Lissner
I switched over to using FastVectorHighlighting, and the problem with maxBooleanClause is resolved. I guess this is at the expense of having a larger index (since you have to enable termVectors, termPositions and termOffsets), but at least it's working. Thanks for the help. Mike On Tue 03 Ja

Re: Filtered search for subset of ids

2012-01-06 Thread solr_noob
Hello Mikhail I like your idea of creating an index for eg category-id. I am going to try to approach the problem with that for now. yeah, off the top of my head, the idea of fq=id(1,2,3,4..) does not seem scalable. thank you so much for your suggestion and pointing out the performance ramific

/no_coord in dismax scoring explain

2012-01-06 Thread Jay Hill
What does "/no_coord" mean in the dismax scoring output? I've looked through the wiki mail archives, lucidfind, and can't find any reference. -- ¡jah!

[SOLVED] [MORE OR LESS] "no such core" error with EmbeddedSolrServer

2012-01-06 Thread Phillip Rhodes
OK, this is working now. There were a couple of things going on, but the net-net was "classloading issues." The initial "no such core" problem was happening because the cores weren't initializing properly due to a NoClassDefFoundError. But after fixing that, I wound up with a pile of ClassCastEx