Question about MoreLikeThis query with solrj

2012-10-02 Thread G.Long
Hi :) I'm using Solr 3.6.1 and i'm trying to use the similarity features of lucene/solr to compare texts. The content of my documents is in french so I defined a field like : indexed="true" stored="true"/> (it uses the default text_fr fieldType provided with the default schema.xml file)

Re: Schema / Config Error?

2012-06-06 Thread G.Long
Hi :) Looks like you forgot to paste your schema.xml and the error in your e-mail : o Gary Le 06/06/2012 10:14, Spadez a écrit : Hi, I installed a fresh copy of Solr 3.6.0 or my server but I get the following page when I try to access Solr: http://176.58.103.78:8080/solr/ It says errors t

Re: Solr tmp working directory

2012-05-15 Thread G.Long
. -- Jack Krupansky -Original Message- From: G.Long Sent: Tuesday, May 15, 2012 9:04 AM To: solr-user@lucene.apache.org Subject: Solr tmp working directory Hi :) I'm using SolrJ to index documents. I noticed that during the indexing process, .tmp files are created in my /tmp folder. These

Solr tmp working directory

2012-05-15 Thread G.Long
Hi :) I'm using SolrJ to index documents. I noticed that during the indexing process, .tmp files are created in my /tmp folder. These files contain the xml commands for the documents I add to the index. Can I change this folder in Solr config and where is it? Thanks, Gary

how to use multiple query operators?

2012-05-11 Thread G.Long
Hi :) I'm can't find how to write a query like : field1:value1 AND (field2:value2 OR field2:value3). I read the documentation about local parameters which allows to define the query operator but it seems to be for the entire query. Gary

Re: question about solr response qtime

2012-05-10 Thread G.Long
Thank you both =) Gary Le 10/05/2012 17:59, Otis Gospodnetic a écrit : Gary - milliseconds, right. Otis Performance Monitoring for Solr / ElasticSearch / HBase - http://sematext.com/spm Yes, milliseconds. --wunder - Original Message - From: G.Long To: solr-user

question about solr response qtime

2012-05-10 Thread G.Long
Hi :) In what unit of time is expressed the QTime of a QueryResponse? Is it milliseconds? Gary

Re: Field with attribut in the schema.xml ?

2012-05-10 Thread G.Long
I don't know what is the best solution. You could indeed split your documents and link them with the patent-number inside the same index. Or you could also use different cores with a specific schema (one core with the schema for the patent and one core with the schema for the inventor) and stil

Re: Field with attribut in the schema.xml ?

2012-05-10 Thread G.Long
I think I see what the problem is. Correct me if I'm wrong but I guess your schema does not represent a person but something which can contain a list of persons with different attributes, right? The problem is that you can't reproduce easily the hierarchy of structured data. There is no attri

Re: Field with attribut in the schema.xml ?

2012-05-10 Thread G.Long
0 000 documents with many fields with this kind of description?! i.e: inventor applicant assignee attorney I must create for each document 4 documents ?? Le 10/05/2012 14:41, G.Long a écrit : When you add data into Solr, you add documents which contain fields. In your case, you should cre

Re: Field with attribut in the schema.xml ?

2012-05-10 Thread G.Long
écrit : like that: CH FR but in this case Ioose the link between inventor and its country? if I search an inventor named ROSSI with CH: q=inventor:rossi and inventor-country=CH the I will get this result but it's not correct because Rossi is FR. Le 10/05/2012 14:28, G.Long a écrit : Hi

Re: Field with attribut in the schema.xml ?

2012-05-10 Thread G.Long
Hi :) You could just add a field called country and then add the information to your document. Regards, Gary L. Le 10/05/2012 14:25, Bruno Mannina a écrit : Dear, I can't find how can I define in my schema.xml a field with this format? My original format is: WEBER WALTER CH ROS

Solr query with mandatory values

2012-05-09 Thread G.Long
Hi :) I remember that in a Lucene query, there is something like mandatory values. I just have to add a "+" symbol in front of the mandatory parameter, like: +myField:my value I was wondering if there was something similar in Solr queries? Or is this behaviour activated by default? Gary

Re: analyzers in schema

2012-05-07 Thread G.Long
Ok :) Thank you ^^ Regards, Gary Le 07/05/2012 17:13, Sven Maurmann a écrit : Dear Gary, yes, you are right. Best, Sven Am 07.05.2012 um 17:08 schrieb G.Long: Hi :) In the schema.xml file, If an analyzer is specified for a fieldtype but without the attribute type="index&quo

analyzers in schema

2012-05-07 Thread G.Long
Hi :) In the schema.xml file, If an analyzer is specified for a fieldtype but without the attribute type="index" or type="query", does it mean the analyzer is used by default for both cases? Gary

query keyword-tokenized fields with solrj

2012-05-04 Thread G.Long
Hi :) In schema.xml I added a custom fieldType called keyword: and a field called article : Now I would like to query this field using solrj. I'm using the following code: SolrQuery query = new SolrQuery("article:L. 111-5-2"); QueryResponse rsp = server.query(query); list = rsp.getR

Re: question about dates

2012-05-03 Thread G.Long
Thank you for the tips :) Gary Le 02/05/2012 21:26, Chris Hostetter a écrit : : String dateString = "20101230"; : SimpleDateFormat sdf = new SimpleDateFormat("MMdd"); : Date date = sdf.parse(dateString); : doc.addField("date", date); : : In the index, the date "20101230" is saved as "2010-1

question about dates

2012-05-02 Thread G.Long
Hi :) I'm starting to use Solr and I'm facing a little problem with dates. My documents have a date property which is of type 'MMdd'. To index these dates, I use the following code: String dateString = "20101230"; SimpleDateFormat sdf = new SimpleDateFormat("MMdd"); Date date = sdf.pa

Re: Does Solr fit my needs?

2012-04-30 Thread G.Long
Hi :) Thank you all for your answers. I'll try these solutions :) Kind regards, Gary Le 27/04/2012 16:31, G.Long a écrit : Hi there :) I'm looking for a way to save xml files into some sort of database and i'm wondering if Solr would fit my needs. The xml files I want to sav

Does Solr fit my needs?

2012-04-27 Thread G.Long
Hi there :) I'm looking for a way to save xml files into some sort of database and i'm wondering if Solr would fit my needs. The xml files I want to save have a lot of child nodes which also contain child nodes with multiple values. The depth level can be more than 10. After having indexed t