Updating a multi-valued field

2011-05-17 Thread karanveer singh
I've been using ExternalFileField for external scoring so far, so that the external field gets "updated" and not "deleted and added" Now, I have a field which is multivalued. I cannot use ExternalFileField as I need this field in the suggest component too. Is there something other than ExternalFi

solr/home property seting

2011-05-17 Thread kun xiong
Hi all, I am wondering how could I set a path for solr/home property. Our solr home is inside the solr.war, so I don't want a absolute path(will deploy to different boxes). Currently I hard code a relative path as solr/home property in web.xml. solr/home *../webapps/solr/ho

Re: Boosting non synonyms result

2011-05-17 Thread Paul Libbrecht
I do it the same but do not use the Dismax query which is a lot too unflexible. In CurrikiSolr, I have my own QueryComponent which does all sorts of query expansion: - it expands a simple term query to a query for the text in the stemmed variant and in the unstemmed variant with more boost - it

Re: Set operations on multiple queries with different qf parameters

2011-05-17 Thread Nikhil Chhaochharia
Thanks, this looks good.  mm and fq don't seem to be working for a nested query, but I should be able to work around it. I was unable to find much documentation on the Wiki, API docs or in the Solr book - please let me know if you are aware of any other documentation for this feature apart from

Re: Apache spam filter

2011-05-17 Thread Markus Jelsma
I know, that's why i only use old-skool 7-bit ascii: Content-Type: Text/Plain; charset="us-ascii" It passed my message the third time when i omitted Ken's original message from my e-mail. > Markus: > > I've had much better luck with the spam filter after switching to plain > text rather than H

Re: Anyone having these Replication issues as well?

2011-05-17 Thread Erick Erickson
Markus: I've had much better luck with the spam filter after switching to plain text rather than HTML-ized e-mail. FWIW Erick On Tue, May 17, 2011 at 6:23 PM, Markus Jelsma wrote: > Third and last attempt, Apache spam filter seems to hate me! > > Hi, > > I've remember a reported issue on the ma

Re: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread Michael Sokolov
On 5/16/2011 7:50 PM, Chris Hostetter wrote: : This poll is to investigate how you currently do or would like to do : logging with Solr when deploying solr.war to a SEPARATE java application : server (such as Tomcat, Resin etc) outside of the bundled FWIW... a) the context of this poll is SOLR-

Re: lucene parser, negative OR operands

2011-05-17 Thread Yonik Seeley
On Tue, May 17, 2011 at 6:57 PM, Jonathan Rochkind wrote: > (changed subject for this topic). Weird. I'm seeing it wrong myself, and > have for a while -- I even wrote some custom pre-processor logic at my app > level to work around it.  Weird, I dunno. > > Wait. "Queries with -one OR -two return

Re: lucene parser, negative OR operands

2011-05-17 Thread Jonathan Rochkind
On 5/17/2011 7:07 PM, Markus Jelsma wrote: This is propably due to the contents (HTML bodies) of the documents i've queried. It's not so strange for this type of document to return less documents when two negated operands are specified. In my case (i tested it) a conjunction returned the same do

Re: lucene parser, negative OR operands

2011-05-17 Thread Markus Jelsma
> (changed subject for this topic). Weird. I'm seeing it wrong myself, and > have for a while -- I even wrote some custom pre-processor logic at my > app level to work around it. Weird, I dunno. > > Wait. "Queries with -one OR -two return less documents than a either > operand does on its own."

lucene parser, negative OR operands

2011-05-17 Thread Jonathan Rochkind
(changed subject for this topic). Weird. I'm seeing it wrong myself, and have for a while -- I even wrote some custom pre-processor logic at my app level to work around it. Weird, I dunno. Wait. "Queries with -one OR -two return less documents than a either operand does on its own." Wait, t

Re: Boosting non synonyms result

2011-05-17 Thread Markus Jelsma
The only method i can think of is, as you mention, define a second field containing the exact match without synonym expansion. In that case you can just put a larger boost value for matches on that field to rank it higher. Just sort score desc and check debugQuery output before and after. > He

Re: Boosting non synonyms result

2011-05-17 Thread Jonathan Rochkind
I do it with two fields exactly how you say, but then use dismax to boost the non-synonom-ed field higher than the synonym-ed field. That is a lot easier than trying to use a function query, which I'm not sure how to do either. On 5/17/2011 6:45 PM, Dmitriy Shvadskiy wrote: Hello, Is there a

Boosting non synonyms result

2011-05-17 Thread Dmitriy Shvadskiy
Hello, Is there a way to boost the result that is an exact match as oppose to synonym match when using query time synonyms? Given the query John Smith and synonyms Jonathan,Jonathan,John,Jon,Nat,Nathan I'd like result containing John Smith to be ranked higher then Jonathan Smith. My thinking was t

Re: filter cache and negative filter query

2011-05-17 Thread Markus Jelsma
, that's not what i see while testing right now. Queries with -one OR -two return less documents than a either operand does on its own, this is with LuceneQParser. I haven't done extensive testing since i rarely use boolean algebra in Lucene or Solr. > Oops, you're right, I had misremembere

Re: filter cache and negative filter query

2011-05-17 Thread Markus Jelsma
> On Tue, May 17, 2011 at 6:17 PM, Markus Jelsma > > wrote: > > I'm not sure. The filter cache uses your filter as a key and a negation > > is a different key. You can check this easily in a controlled > > environment by issueing these queries and watching the filter cache > > statistics. > > G

Re: filter cache and negative filter query

2011-05-17 Thread Jonathan Rochkind
Oops, you're right, I had misremembered --- Solr 1.4.1 "lucene" qp handles pure negative fine, it's Solr 1.4.1 _dismax_ that does not. Although, here's one, not actually related to this thread, that DOESN'T work in Solr 1.4.1 lucene query parser. Curious if it's been fixed in Solr 3.1. &def

Re: filter cache and negative filter query

2011-05-17 Thread Markus Jelsma
Using q works just as one would expect as well ;) I think you confuse using negation to find documents that don't _have_ a specific field. In that case, a simple negation doesn't work indeed. > Wait, will a pure negative filter query actually work then, even though > a pure negative lucene 'q' w

Re: filter cache and negative filter query

2011-05-17 Thread Markus Jelsma
Such a negation works just as one would expect. q=*:* q=*:*&fq=-type:text/html q=*:*&fq=type:text/html Well, that adds up , doesn't it ;) > 1. I don't think Solr will re-use the filter cache in that situation, > although I'm not sure. But I comment anyway because, not what you asked > but s

Re: filter cache and negative filter query

2011-05-17 Thread Yonik Seeley
On Tue, May 17, 2011 at 6:17 PM, Markus Jelsma wrote: > I'm not sure. The filter cache uses your filter as a key and a negation is a > different key. You can check this easily in a controlled environment by > issueing these queries and watching the filter cache statistics. Gotta hate crossing ema

Re: Anyone having these Replication issues as well?

2011-05-17 Thread Markus Jelsma
Third and last attempt, Apache spam filter seems to hate me! Hi, I've remember a reported issue on the mailing list mentioning the funky interval you describe but it had no replies. I've done several set ups with replication of which one is a very high load service with a pollInterval of 2 sec

Re: filter cache and negative filter query

2011-05-17 Thread Jonathan Rochkind
Wait, will a pure negative filter query actually work then, even though a pure negative lucene 'q' won't? WOAH, it WILL. Okay, ignore my last message. But, okay, can someone explain THAT one to me? How come &q=-history does NOT work with Solr 1.4.1 lucene query parser, but &q=something&fq=-

Re: filter cache and negative filter query

2011-05-17 Thread Jonathan Rochkind
1. I don't think Solr will re-use the filter cache in that situation, although I'm not sure. But I comment anyway because, not what you asked but something else that will trip you up with your example: 2. In fact, a pure-negative query like that doesn't work _at all_ in the default solr/lucene

Re: filter cache and negative filter query

2011-05-17 Thread Markus Jelsma
I'm not sure. The filter cache uses your filter as a key and a negation is a different key. You can check this easily in a controlled environment by issueing these queries and watching the filter cache statistics. > If I have a query with a filter query such as : " q=art&fq=history" and > then r

Re: filter cache and negative filter query

2011-05-17 Thread Yonik Seeley
On Tue, May 17, 2011 at 6:07 PM, Burton-West, Tom wrote: > If I have a query with a filter query such as : " q=art&fq=history" and then > run a second query  "q=art&fq=-history", will Solr realize that it can use > the cached results of the previous filter query "history"  (in the filter > cach

filter cache and negative filter query

2011-05-17 Thread Burton-West, Tom
If I have a query with a filter query such as : " q=art&fq=history" and then run a second query "q=art&fq=-history", will Solr realize that it can use the cached results of the previous filter query "history" (in the filter cache) or will it not realize this and have to actually do a second fi

Re: Anyone having these Replication issues as well?

2011-05-17 Thread Bill Bell
Sundial? Ha ha Bill Bell Sent from mobile On May 17, 2011, at 3:23 PM, kenf_nc wrote: > Is it just me or is Replication a POS? (Solr 1.4.1, Tomcat 6.0.32) > > 1) I had set my pollInterval to 60 seconds but it appears to fire constantly > so I set it to 5 minutes and I see in the Tomcat logs

Re: Solr returns the document conatining the links of the required document as top result?

2011-05-17 Thread Markus Jelsma
Hi, Begin here: http://wiki.apache.org/solr/FAQ#How_can_I_figure_out_why_my_documents_are_being_ranked_the_way_they_are.3F Cheers > I have integrated solr and nutch.That is , crawling has been performed by > nutch and indexed to solr. I have been using this solr server for querying > for a long

Anyone having these Replication issues as well?

2011-05-17 Thread kenf_nc
Is it just me or is Replication a POS? (Solr 1.4.1, Tomcat 6.0.32) 1) I had set my pollInterval to 60 seconds but it appears to fire constantly so I set it to 5 minutes and I see in the Tomcat logs where it fires the replication check anywhere from 2 minutes to 4 1/2 minutes, but never anything

Solr returns the document conatining the links of the required document as top result?

2011-05-17 Thread Anurag
I have integrated solr and nutch.That is , crawling has been performed by nutch and indexed to solr. I have been using this solr server for querying for a long time. But some day back , i observed a strange thing. Rather than giving the asked or best fitted document as top result , it shows the d

Re: Anyone familiar with Solandra or Lucandra?

2011-05-17 Thread kenf_nc
Ah. I see. That reduces its usefulness to me some. The multi-master aspect is still a big draw of course. But I was hoping this also added an integrated persistence layer to Solr as well. -- View this message in context: http://lucene.472066.n3.nabble.com/Anyone-familiar-with-Solandra-or-Lucendr

Re: Specifying backup location in solrconfig.xml

2011-05-17 Thread Dietrich
That would work, but I have way too many cores, it would not be good from a maintenance perspective. 2011/5/17 Yury Kats : > I would create a replication slave, for which you can specify whatever > location you want, even put it on a different machine. If ran on the same > machine, the slave can be

Re: Synonym mapping not working with spaces and non-ASCII characters

2011-05-17 Thread Markus Jelsma
Hi, Whitespace must be escaped: Südliche\ Weinstrasse => Südliche\ Weinstraße Haven't used non-latin characters in synonyms but it should work. Cheers, > Hi! > > I have a text field type "countystring" which I need for faceting. > This single-valued field should contain names of German countie

Synonym mapping not working with spaces and non-ASCII characters

2011-05-17 Thread Marian Steinbach
Hi! I have a text field type "countystring" which I need for faceting. This single-valued field should contain names of German counties like "Südliche Weinstraße". No tokenizing, stemming etc. is intended. Only one SynonymFilterFactory is applied.

Re: I need an available solr lucene consultant

2011-05-17 Thread Lance
Thanks Shashi - there aren't too many qualified people on those sites - I have looked. - Lance On May 17, 2011, at 4:13 PM, Shashi Kant wrote: You might be better off looking for freelancers on sites such as odesk.com, guru.com, rentacoder.com, elance.com & man

Re: I need an available solr lucene consultant

2011-05-17 Thread Lance
Thanks Markus, I did look at that list, but I'm wondering if there is anyone who is not on the list who may be interested. - Lance On May 17, 2011, at 4:09 PM, Markus Jelsma wrote: Check this out: http://wiki.apache.org/solr/Support > Hi, > > I am looking fo

Re: I need an available solr lucene consultant

2011-05-17 Thread Shashi Kant
You might be better off looking for freelancers on sites such as odesk.com, guru.com, rentacoder.com, elance.com & many more On Tue, May 17, 2011 at 4:09 PM, Markus Jelsma wrote: > Check this out: > http://wiki.apache.org/solr/Support > >> Hi, >> >> I am looking for an experienced and skille

Terms Component - solr-1.4.0

2011-05-17 Thread Solr User
Hi All, I am using Solr 1.4.0 and dismax as request handler.I have the following in my solrconfig.xml in the dismax request handler tag spellcheck The above tags helps to find terms if there are spelling issues. I tried configuring terms component and no luck. May I know how to configure term

Re: Specifying backup location in solrconfig.xml

2011-05-17 Thread Yury Kats
I would create a replication slave, for which you can specify whatever location you want, even put it on a different machine. If ran on the same machine, the slave can be another core in the same Solr instance. On 5/17/2011 2:20 PM, Dietrich wrote: > I am using Solr Replication to create a snapsh

Re: I need an available solr lucene consultant

2011-05-17 Thread Markus Jelsma
Check this out: http://wiki.apache.org/solr/Support > Hi, > > I am looking for an experienced and skilled Solr & Lucene > developer/consultant to work on a software project incorporating natural > language processing and machine learning algorithms. As part of a larger > NLP/AI project that is un

I need an available solr lucene consultant

2011-05-17 Thread Lance
Hi, I am looking for an experienced and skilled Solr & Lucene developer/consultant to work on a software project incorporating natural language processing and machine learning algorithms. As part of a larger NLP/AI project that is under way, we need someone to install, refine and optimize Solr

Re: Disable IDF scoring on certain fields

2011-05-17 Thread Brian Lamb
Thank you Robert for pointing this out. This is not being used for autocomplete. I already have another core set up for that :-) The idea is like I outlined above. I just want a multivalued field that treats every term in the field the same so that the only way documents separate themselves is by

Re: Anyone familiar with Solandra or Lucandra?

2011-05-17 Thread Jake Luciani
On Tue, May 17, 2011 at 3:07 PM, kenf_nc wrote: > But I can query Cassandra directly for the documents if I wanted/needed to? > > The data is available in the Solandra Keyspace but I wouldn't recommend accessing it directly. Most people who want todo this end up not storing the document fields i

Re: Disable IDF scoring on certain fields

2011-05-17 Thread Markus Jelsma
Well, if you're experimental you can try trunk as Robert points out it has been fixed there. If not, i guess you're stuck with creating another core. If this fieldType specifically used for auto-completion? If so, another core, preferably on another machine, is in my opinion the way to go. Auto-

Re: Disable IDF scoring on certain fields

2011-05-17 Thread Robert Muir
On Tue, May 17, 2011 at 3:34 PM, Markus Jelsma wrote: > If you still want IDF for other fields then i > think you have a problem because Solr doesn't yet support per-field > similarity. > it does in trunk: https://issues.apache.org/jira/browse/SOLR-2338

Re: Disable IDF scoring on certain fields

2011-05-17 Thread Brian Lamb
Hi Markus, I was just looking at overriding DefaultSimilarity so your email was well timed. The problem I have with it is as you mentioned, it does not seem possible to do it on a field by field basis. Has anyone had any luck with doing some of the similarity functions on a field by field basis? I

Re: Disable IDF scoring on certain fields

2011-05-17 Thread Markus Jelsma
Hi, Although you can configure per field TF (by omitTermFreqAndPositions) you can't do this for IDF. If you index is only used for this specific purpose (seems like an auto-complete index) then you can override DefaultSimilarity and return a static value for IDF. If you still want IDF for other

Faceting on distance in Solr: how do you generate links that search withing a given range of distance?

2011-05-17 Thread Fergus McDowall
It is fairly simple to generate facets for ranges or 'buckets' of distance in Solr: http://wiki.apache.org/solr/SpatialSearch#How_to_facet_by_distance. What isnt described is how to generate the links for these facets If this is the query to return everything within 10km : &q=:&fq={!geofilt sfield

Pivot with Stats (or Stats with Pivot)

2011-05-17 Thread eduardo
Hi All, Is it possible to get stats (like Stats Component: min ,max, sum, count, missing, sumOfSquares, mean and stddev) from numeric fields inside hierarchical facets (with more than one level, like Pivot)? I would like to query: ...?q=*:*&version=2.2&start=0&rows=0&stats=true&stats.field

Re: Anyone familiar with Solandra or Lucandra?

2011-05-17 Thread kenf_nc
But I can query Cassandra directly for the documents if I wanted/needed to? And, when I need to re-index, I could read from Cassandra, index into Solr, which will write back to Cassandra overwriting the existing document(s)? Basically the steps would be, index documents into Solr which would wri

RE: Highlighting issue with Solr 3.1

2011-05-17 Thread Nemani, Raj
Thank you, so much! That was it. Thanks again Raj -Original Message- From: Koji Sekiguchi [mailto:k...@r.email.ne.jp] Sent: Monday, May 16, 2011 8:45 PM To: solr-user@lucene.apache.org Subject: Re: Highlighting issue with Solr 3.1 (11/05/17 3:27), Nemani, Raj wrote: > All, > > > > I

Specifying backup location in solrconfig.xml

2011-05-17 Thread Dietrich
I am using Solr Replication to create a snapshot for backup purposes after each optimize: optimize schema.xml,mapping-ISOLatin1Accent.txt,protwords.txt,stopwords.txt,synonyms.txt,elevate.xml That works fine, but i need to create the snapshots somewhere outside the data dir

Disable IDF scoring on certain fields

2011-05-17 Thread Brian Lamb
Hi all, I have a field defined in my schema.xml file as I would like do disable IDF scoring on this field. I am not interested in how rare the term is, I only care if the term is present or not. The idea is that if a user does a search for "myfield:dog OR myfield:pony", th

Re: MoreLikeThis PDF search

2011-05-17 Thread Brian Lamb
Would I be better off trying to use something like PHP to read the PDF file and extrapolate the information and then pass it on to the MoreLikeThis handler or is there a way it can be done by giving it the PDF directly? On Fri, May 13, 2011 at 4:54 PM, Brian Lamb wrote: > Any thoughts on this one

Re: Anyone familiar with Solandra or Lucandra?

2011-05-17 Thread Jake Luciani
Hi, Solandra does give you multi-master writes and will even work cross-dc. There are a number of companies in the process of moving to Solandra and the company I work for DataStax has support options for it. But there are few installs in production at the moment. I am hopeful this will change a

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
http://stackoverflow.com/questions/6034513/can-i-avoid-a-dependency-cycle-with-one-edge-being-a-test-dependency On Tue, May 17, 2011 at 6:49 PM, Gabriele Kahlout wrote: > > > > On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout < > gabri...@mysimpatico.com> wrote: > >> >> >> On Tue, May 17, 2011 a

applying FastVectorHighlighter truncation patch to solr 3.1

2011-05-17 Thread Paul
I'm having this issue with solr 3.1: https://issues.apache.org/jira/browse/LUCENE-1824 It looks like there is a patch offered, but I can't figure out how to apply it. What is the easiest way for me to get this fix? I'm just using the example solr with changed conf xml files. Is there a file some

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout wrote: > > > On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > >> Hi Gabriele, >> >> On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: >> > Solr Core should declare a test dependency on Solr Test Framework. >> >> I agree: >> >> - Solr Core sh

RE: Solr Range Facets

2011-05-17 Thread Rohit
Hi Chris, Thanks for explaining the point system, please find below the complete problem. Hopefully I am not doing something stupid. I am trying to facet based on date field and apply user timezone offset so that the faceted results are in user timezone. My faceted result is given below,

Solr Offset and Date faceting problem

2011-05-17 Thread Rohit
I am trying to facet based on date field and apply user timezone offset so that the faceted results are in user timezone. My faceted result is given below, 0 6

Re: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread Chris Hostetter
: If I understand what you've said above correctly, removing the binding in : solr.war would make it inherit the binding in jetty/tomcat/whatever, is that : right? That sounds like an awesome plan to me. The example jetty server can : be configured instead of solr.war. Once you've answered this

Re: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread openvictor Open
Wow... Nobody is using the one with Jetty ? It was a good option for me because I like to have separate processes for different things : A tomcat server for all the webapps of my server, Jetty Server with Solr and a drools server. Was it a stupid idea from the beginning ? So my choice : [ ] I al

Re: error while doing full import

2011-05-17 Thread dan whelan
On 5/16/11 9:35 PM, deniz wrote: Caused by: java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Undeclared general entity "nbsp" at [row,col {unknown-source}]: [170,29] at ... The XML is not well-formed because of the   (row 170, col 29) you could wrap the text in a CDATA tag o

Suggester and query/index analysis

2011-05-17 Thread dan sutton
Hi All, I understand that I can use a custom queryConverter for the input to the suggester http://wiki.apache.org/solr/Suggester component, however there dosen't seem to be anything on the indexing side, TST appears to take the input verbatim, and Jaspell seems to lowercase everything. The proble

Re: Exact match

2011-05-17 Thread Jonathan Rochkind
You've got to change the fields to do it. If you use a String field, then only exact matches will match, but they'll be REALLY exact matches -- spacing, punctuation, etc. Also, if you are using the lucene or dismax query parsers, you'll need to phrase quote your query if it has any spaces in

Re: Set operations on multiple queries with different qf parameters

2011-05-17 Thread Jonathan Rochkind
One way to do it might be to use the Solr 'nested query' functionality. http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/ Not entirely sure this will work exactly as I've written it, but give you some ideas of what nested query can do. Note not fully URL-encoded for clar

Re: solrj issue: SocketTimeout: read timed out, but commit succed on server.

2011-05-17 Thread Dennis Schafroth
It also happens on add records. Putting a proxy in between client and server, revealed that the server writes zero bytes back on the update, so what the client says is correct. So guess I have to dig into the server code. Limiting to fewer updates before commit does seem to make the change o

Re: Replication setup with SolrCloud/Zk

2011-05-17 Thread Yury Kats
On 5/17/2011 10:17 AM, Stefan Matheis wrote: > Yury, > > perhaps Java-Pararms (like used for this sample: > http://wiki.apache.org/solr/SolrReplication#enable.2BAC8-disable_master.2BAC8-slave_in_a_node) > can help you? Ah, thanks! It does seem to work! Cluster's solrconfig.xml (shared between al

Re: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread Shawn Heisey
On 5/16/2011 5:47 AM, Jan Høydahl wrote: That's what happens if we ship solr.war without any pre-set logger binding - it's the binding provided in your app-server's classpath which will be used. I use the jetty that's bundled in the example, but with my own directory structure that's a lot di

Re: Exact match

2011-05-17 Thread roySolr
Try this: "search term" -- View this message in context: http://lucene.472066.n3.nabble.com/Exact-match-tp2952591p2952699.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Replication setup with SolrCloud/Zk

2011-05-17 Thread Stefan Matheis
Yury, perhaps Java-Pararms (like used for this sample: http://wiki.apache.org/solr/SolrReplication#enable.2BAC8-disable_master.2BAC8-slave_in_a_node) can help you? Regards Stefan 2011/5/17 Yury Kats : > Hi, > > I have two Solr nodes, each managing two cores -- a master core and a slave > core.

Re: Exact match

2011-05-17 Thread Anuj Kumar
Hi Alex, You need to define that field of type String in the schema and then search for it. That will give you an exact match. Regards, Anuj On Tue, May 17, 2011 at 7:21 PM, Alex Grilo wrote: > Hi, > > Can I make a query that returns only exact match or do I have to change the > fields to achi

Replication setup with SolrCloud/Zk

2011-05-17 Thread Yury Kats
Hi, I have two Solr nodes, each managing two cores -- a master core and a slave core. The slaves are setup to replicate from the other node's masters That is, node1.master -> node2.slave, node2.master -> node1.slave. The replication is configured in each core's solrconfig.xml, eg Master's solrc

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > Hi Gabriele, > > On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: > > Solr Core should declare a test dependency on Solr Test Framework. > > I agree: > > - Solr Core should have a test-scope dependency on Solr Test Framework. > - Solr Test F

Exact match

2011-05-17 Thread Alex Grilo
Hi, Can I make a query that returns only exact match or do I have to change the fields to achieve that? Thanks in advance Alex Grilo

RE: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Steven A Rowe
Hi Gabriele, On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: > Solr Core should declare a test dependency on Solr Test Framework. I agree: - Solr Core should have a test-scope dependency on Solr Test Framework. - Solr Test Framework should have a compile-scope dependency on Solr Core. But Mave

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:24 PM, Gabriele Kahlout wrote: > thank you. I'd like to stick to the same version (i.e. 3.2-SNAPSHOT). It > seems things have changed there. > > To reproduce (should we file this and add my test as a test to avoid this > bumping up again?) > > $ > svn co -r 1104120 > http

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
thank you. I'd like to stick to the same version (i.e. 3.2-SNAPSHOT). It seems things have changed there. To reproduce (should we file this and add my test as a test to avoid this bumping up again?) $ svn co -r 1104120 http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/ solr cd solr; a

Re: solrj, boost and schema.xml

2011-05-17 Thread Marc SCHNEIDER
Hi, I was really convinced there was such a field in the schema.xml structure -) Thanks for you answer! Marc. On Tue, May 17, 2011 at 1:59 PM, Erick Erickson wrote: > How are you defining a boost for a field in the schema? As far > as I know there's no such parameter for the tag that Solr > un

Re: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread Bently Preece
I'm not a Solr/Lucene programmer. I'm a guy who does web sites (using PHP!) who wants a good search engine. And the search *functionality* in Solr rocks - great job, guys! Considering that, I don't really care how Solr logs things. I just want it to be straightforward and well-documented. Whic

solrj issue: SocketTimeout: read timed out, but commit succed on server.

2011-05-17 Thread Dennis Schafroth
Hi I can see others is having same issue but haven't seen any fixes or work around. I am adding and delete records mixed. I do bulks up till 1000 records. On the commit I see the following in the client: 2011-05-17 13:42:41 ERROR - harvester [main/com.indexdata.masterkey.localindices.harve

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Colin Vipurs
I use the following: org.apache.solr solr-core 3.1.0 org.apache.solr solr-solrj 3.1.0 > Hello, > > I'm starting to write tests of my Solr integration, and hav

How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
Hello, I'm starting to write tests of my Solr integration, and have unfortunately spent a lot of time chasing updated documentation. Follows a test I found herewhich uses anEmbeddedSolrServerto communicate with the server and r

Re: solrj, boost and schema.xml

2011-05-17 Thread Erick Erickson
How are you defining a boost for a field in the schema? As far as I know there's no such parameter for the tag that Solr understands. Solr ignores attributes it doesn't recognize So, you'd have to read/parse the schema.xml file (which you can get from the admin handler, see the URL generated

Re: error while doing full import

2011-05-17 Thread Erick Erickson
Please provide many more details about what you're trying to do, your DIH config, information about your datasource, etc. Please review: http://wiki.apache.org/solr/UsingMailingLists Best Erick On Tue, May 17, 2011 at 12:35 AM, deniz wrote: > org.apache.solr.handler.dataimport.DataImportHandler

Re: How to set a common field to several values types ?

2011-05-17 Thread Erick Erickson
Take a look at custom transformers if you're using DIH. Otherwise please explain more about what you want to accomplish... Oh, and it would be better to start a new thread than hijack this one, see: http://people.apache.org/~hossman/#threadhijack Best Erick On Mon, May 16, 2011 at 11:34 PM, habo

RE: [POLL] How do you (like to) do logging with Solr

2011-05-17 Thread Bob Sandiford
> > Please tick one of the options below with an [X]: > > [ ] I always use the JDK logging as bundled in solr.war, that's > perfect > [X] I sometimes use log4j or another framework and am happy with re- > packaging solr.war > [ ] Give me solr.war WITHOUT an slf4j logger binding, so I can choos

Re: Problem about Solrj

2011-05-17 Thread Marc SCHNEIDER
Hi, What is the error exactly? Did you look at the logs? Regards, Marc. 2011/5/17 > Dear all, >   > I have a problem about using solrj. > From Solrj I learned that following code would delete all indexes from solr > and it really did. >   >    SolrServer server = getSolrServer(); >    UpdateRe

Re: UIMA analysisEngine path

2011-05-17 Thread chamara
Hi My solr version is 3.1.0. I actually figured out what my problem was. I used the guide https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/contrib/uima/README.txt and it seems that i have placed the code snippet inside an another xml element not under config. Will the UIMA work with solr ve

Re: UIMA analysisEngine path

2011-05-17 Thread Tommaso Teofili
Hi again Chamara, 2011/5/17 chamara > Thanks Tommaso, yes this occurred after copying the .jar files to the lib > folder. When i do not copy them from contrib/uima/lib and have the > solrconfig.xml to point to those libs i get the following error. I am a bit > confused why a class path was chose

Problem about Solrj

2011-05-17 Thread elsea
Dear all,   I have a problem about using solrj. From Solrj I learned that following code would delete all indexes from solr and it really did.      SolrServer server = getSolrServer();    UpdateResponse ur = server.deleteByQuery("*:*");    server.commit();   But somehow when I put this code in a

Re: indexing xml attributes?

2011-05-17 Thread bryan rasmussen
Ah never mind, I had to restart my instance in order for my changes to the dataimporter to register. thanks, Bryan Rasmussen On Tue, May 17, 2011 at 12:19 PM, bryan rasmussen wrote: > Hi, > > As I understand it the DIH XPathEntityProcessor will not allow me to > index attributes - like so /> >

Re: UIMA analysisEngine path

2011-05-17 Thread chamara
Thanks Tommaso, yes this occurred after copying the .jar files to the lib folder. When i do not copy them from contrib/uima/lib and have the solrconfig.xml to point to those libs i get the following error. I am a bit confused why a class path was chosen to get the analysis engine descriptor . The e

indexing xml attributes?

2011-05-17 Thread bryan rasmussen
Hi, As I understand it the DIH XPathEntityProcessor will not allow me to index attributes - like so So if I want to index attributes I should pre-process the documents into the format that Solr indexes normally and place the value of the ID into a field? Thanks, Bryan Rasmussen

Re: how to use variable in solfconfig.xml?

2011-05-17 Thread Paul Libbrecht
that tastes like two different requester processors. paul Le 17 mai 2011 à 08:31, deniz a écrit : > well the things that i wanna do is something like this: > > lets say we got two users, ids are 1 and 2. and the links /1 returns > user1's data in xml format and /2 returns user2's data

solrj, boost and schema.xml

2011-05-17 Thread Marc SCHNEIDER
Hi, I defined fields in my schema.xml using the boost attribute. Now I'm using Solrj to index my documents so after having created a SolrInputDocument I use the addField method. A boost parameter can be provided. But how can I read the boost value I defined in schema.xml for that field so that I c