RE: running SOLR on same server as your website

2011-09-07 Thread Tim Gilbert
Just make sure that outside users can't talk directly to your solr instance. If they can talk to Solr, they can add/delete documents which will affect your site. Tim -Original Message- From: okayndc [mailto:bodymo...@gmail.com] Sent: Wednesday, September 07, 2011 10:45 AM To:

Fast DIH with 1:M multValue entities

2011-04-14 Thread Tim Gilbert
We are working on importing a large number of records into Solr using DIH. We have one schema with ~2000 fields declared which map off to several database schemas so that typically each document will have ~500 fields in use. We have about 2 million rows which we are importing, and we are seeing

RE: Fast DIH with 1:M multValue entities

2011-04-14 Thread Tim Gilbert
with 1:M multValue entities I'm not sure this applies, but have you looked at http://wiki.apache.org/solr/DataImportHandler#CachedSqlEntityProcessor http://wiki.apache.org/solr/DataImportHandler#CachedSqlEntityProcessor Best Erick On Thu, Apr 14, 2011 at 9:12 AM, Tim Gilbert tim.gilb

RE: Javabin-JSon

2011-03-29 Thread Tim Gilbert
Markus is right, this isn't the list for Java questions, but you can look into Jackson. Jackson is a java binder that can convert java pojos into json. http://jackson.codehaus.org/ I use it in Spring MVC to convert my output to json. Tim -Original Message- From: paulohess

RE: keeping data consistent between Database and Solr

2011-03-15 Thread Tim Gilbert
I use Solr + MySql with data coming from several DHI type loaders that I have written to move data from many different databases into my BI solution. I don't use DHI because I am not simply replicating the data, but I am moving/merging/processing the incoming data during the loading. For me, I

RE: Solr and Permissions

2011-03-11 Thread Tim Gilbert
What about using the BitwiseQueryParserPlugin? https://issues.apache.org/jira/browse/SOLR-1913 You could encode your documents with a series of permissions based on Bit flags and then OR them on query. Tim -Original Message- From: r...@intelligencebank.com

uniqueKey merge documents on commit

2011-03-03 Thread Tim Gilbert
Hi, I have a unique key within my index, but rather than the default behavour of overwriting I am wondering if there is a method to merge the two different documents on commit of the second document. I have a testcase which explains what I'd like to happen: @Test public void

RE: [POLL] Where do you get Lucene/Solr from? Maven? ASF Mirrors?

2011-01-21 Thread Tim Gilbert
Where do you get your Lucene/Solr downloads from? [X] ASF Mirrors (linked in our release announcements or via the Lucene website) [] Maven repository (whether you use Maven, Ant+Ivy, Buildr, etc.) [X] I/we build them from source via an SVN/Git checkout. [] Other (someone in your company

RE: Mulitple facet - fq

2010-10-20 Thread Tim Gilbert
As Prasad said: fq=(category:corporate category:personal) But you might want to check your schema.xml to see what you have here: !-- SolrQueryParser configuration: defaultOperator=AND|OR -- solrQueryParser defaultOperator=AND / You can always specify your operator in

RE: Mulitple facet - fq

2010-10-20 Thread Tim Gilbert
Sorry, what Pradeep said, not Prasad. My apologies Pradeep. -Original Message- From: Tim Gilbert Sent: Wednesday, October 20, 2010 12:18 PM To: 'solr-user@lucene.apache.org' Subject: RE: Mulitple facet - fq As Prasad said: fq=(category:corporate category:personal) But you

RE: Schema required?

2010-10-18 Thread Tim Gilbert
Hi Frank, Check out the Dynamic Fields option from here http://wiki.apache.org/solr/SchemaXml Tim -Original Message- From: Frank Calfo [mailto:fca...@aravo.com] Sent: Monday, October 18, 2010 5:25 PM To: solr-user@lucene.apache.org Subject: Schema required? We need to index documents

RE: Advice requested. How to map 1:M or M:M relationships with support for facets

2010-09-08 Thread Tim Gilbert
' field. This will store the date twice. Solr schema design is all about denormalizing. Tim Gilbert wrote: Hi guys, *Question:* What is the best way to create a solr schema which supports a 'multivalue' where the value is a two item array of event category and a date. I want to have faceted

Advice requested. How to map 1:M or M:M relationships with support for facets

2010-09-07 Thread Tim Gilbert
Hi guys, Question: What is the best way to create a solr schema which supports a 'multivalue' where the value is a two item array of event category and a date. I want to have faceted searches, counts and Date Range ability on both the category and the dates. Details: This is a

RE: date boosting and dismax

2010-07-14 Thread Tim Gilbert
I used this before my search term and it works well: {!boost b=recip(ms(NOW,publishdate),3.16e-11,1,1)} Its enough that when I search for *:* the articles appear in chronological order. Tim -Original Message- From: Shawn Heisey [mailto:s...@elyograg.org] Sent: Wednesday, July 14, 2010

RE: date boosting and dismax

2010-07-14 Thread Tim Gilbert
by the above, but I cannot find it now. Thanks, Shawn On 7/14/2010 10:26 AM, Tim Gilbert wrote: I used this before my search term and it works well: {!boost b=recip(ms(NOW,publishdate),3.16e-11,1,1)} Its enough that when I search for *:* the articles appear in chronological order. Tim

RE: Foreign characters question

2010-07-13 Thread Tim Gilbert
I had the same problem, the correction differs by which application server you are using. If it's Tomcat, try here: http://wiki.apache.org/solr/SolrTomcat near uri charset. I use glassfish, and I added this entry to the wiki after getting help from this group:

RE: TikaEntityProcessor on Solr 1.4?

2010-06-08 Thread Tim Gilbert
When I wanted to add some content to the solrj wiki for glassfish, I had a problem in that their anti-spam measures broke the ability to create a new account. Someone here (Chris I think) was kind enough to create a ticket in the correct place: https://issues.apache.org/jira/browse/INFRA-2726

RE: solrj Unicode queries don't return results

2010-06-07 Thread Tim Gilbert
I had the same problem a while back. You didn't mention which application server you are using (if any) but some application servers have problems with UTF-8 queries and GET. Tomcat has a well documented solution http://wiki.apache.org/solr/SolrTomcat (near the bottom), I recently experienced

RE: Auto-suggest internal terms

2010-06-02 Thread Tim Gilbert
I was interested in the same thing and stumbled upon this article: http://www.mattweber.org/2009/05/02/solr-autosuggest-with-termscomponent -and-jquery/ I haven't followed through, but it looked promising to me. Tim -Original Message- From: Jay Hill [mailto:jayallenh...@gmail.com]

RE: SolrJ Unicode problem

2010-05-28 Thread Tim Gilbert
I had a similar problem a few days ago and I found that the documents where not being loaded correctly as UTF-8 into Solr. In my case, the loader program was a Java.jar I was executing from a cron job. There I added this: java -Dfile.encoding=UTF-8 -jar /home/tim/solr/bin/loadSiteSearch.jar

Non-English query via Solr Example Admin corrupts text

2010-05-20 Thread Tim Gilbert
or advice are appreciated! Thanks in advance, Tim Gilbert

RE: Non-English query via Solr Example Admin corrupts text

2010-05-20 Thread Tim Gilbert
Chris, You are the best. Switching to POST solved the problem. I hadn't noticed that option earlier but after finding: https://issues.apache.org/jira/browse/SOLR-612 I found the option in the code. Thank you, you just made my day. Secondly, in an effort to narrow down whether this was a

RE: Non-English query via Solr Example Admin corrupts text

2010-05-20 Thread Tim Gilbert
I wanted to improve the documentation in the solr wiki by adding in my findings. However, when I try to log in and create a new account, I receive this error message: You are not allowed to do newaccount on this page. Login and try again. Does anyone know how I can get permission to add a page