Date Search with q query parameter

2009-03-12 Thread dabboo
Hi, I am facing an issue with the date field, I have in my records. e.g. I am using q query parameter and passing some string as search criteria like test. While creating query with q parameter, how query forms is: column1:test | column2:test | column3:test . ... I have one column as date

Highlighting the searched term in resultset

2009-03-12 Thread Venu Mittal
I was wondering if there is any way of highlighting the searched term in the resultset directly instead of having it as a separate lst element. Doing it through xsl transformation would be one way. Has anybody implemented any other better solution ? e.g result name=response numFound=293

Re: Date Search with q query parameter

2009-03-12 Thread Venu Mittal
Is your final query in this format ? col1:[2009-01-01T00:00:00Z+TO+2009-01-01T23:59:59Z] From: dabboo ag...@sapient.com To: solr-user@lucene.apache.org Sent: Thursday, March 12, 2009 12:27:48 AM Subject: Date Search with q query parameter Hi, I am facing an

Solr 1.3 and Solr 1.4 difference?

2009-03-12 Thread Praveen Kumar Jayaram
Hi What is the exact difference between Solr 1.3 and Solr 1.4 (Nightly build as of now)?? Heard SolrJ is not part of Solr and performance is great in Solr 1.4 Please tell exactly what all going to differ in Solr 1.4 If possible please provide a pointer which describes the same. - Regards,

Re: Problem using DIH templatetransformer to create uniqueKey: solved

2009-03-12 Thread Fergus McMenemie
Folks, Template transformer will fail to return if a variable if undefined, however the regex transformer does still return. So where the following would fail:- field column=id template=${jc.fileAbsolutePath}${x.vurl} / This can be used instead:- field column=id regex=(.*)

Re: Solr 1.3 and Solr 1.4 difference?

2009-03-12 Thread Noble Paul നോബിള്‍ नोब्ळ्
here is the exhaustive list of all changes in 1.4 http://svn.apache.org/repos/asf/lucene/solr/trunk/CHANGES.txt On Thu, Mar 12, 2009 at 3:29 PM, Praveen Kumar Jayaram praveen198...@gmail.com wrote: Hi What is the exact difference between Solr 1.3 and Solr 1.4 (Nightly build as of now)??

Re: Date Search with q query parameter

2009-03-12 Thread Shalin Shekhar Mangar
On Thu, Mar 12, 2009 at 4:39 PM, dabboo ag...@sapient.com wrote: Hi, I am able to rectify that exception but now what I am looking for is : How I can pass the value to the date field to search for the record of a specific date value. e.g. I want to retrieve all the records of Jan 01, 2007.

Re: Date Search with q query parameter

2009-03-12 Thread dabboo
Hi, Date range query is working fine for me. This is the query I entered. q=productPublicationDate_product_dt:1993-02-01T12:00:00Zversion=2.2start=0rows=10indent=onqt=dismaxrequest It threw this exception: type Status report message Invalid Date String:'1993-02-01t12' description The

Re: Date Search with q query parameter

2009-03-12 Thread dabboo
Hi, I am able to rectify that exception but now what I am looking for is : How I can pass the value to the date field to search for the record of a specific date value. e.g. I want to retrieve all the records of Jan 01, 2007. How I will pass the value with the column name. If I pass the value it

Re: Tomcat holding deleted snapshots until it's restarted

2009-03-12 Thread Marc Sturlese
The old IndexSearcher is beeing closed correctly: 2009-03-12 13:05:06,200 [pool-7-thread-1] INFO org.apache.solr.core.SolrCore - [core_01] Registered new searcher searc...@c6692 main 2009-03-12 13:05:06,200 [pool-7-thread-1] INFO org.apache.solr.search.SolrIndexSearcher - Closing

Re: Custom path for solr lib and data folder

2009-03-12 Thread con
Hoss Assume my current working directory is C:/MyApplication/searchApp and in the solr.xml i am specifying C:/lib as shared lib, then the console output contains the following line: INFO: loading shared library: C:\MyApplication\searchApp\C:\lib Thanks con hossman wrote: Adding ' +

How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Bruno Aranda
Hi, I am trying to disable stemming from the analyzer, but I am not sure how to do it. For instance, I have a field that contains blah, but when I search for blah* it cannot find it, whereas if I search for bla* it does. I was using the text type field, from the example schema.xml. How should I

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Erik Hatcher
Remove the EnglishPorterFilterFactory from your text analyzer configuration (both index and query sides). And reindex all documents. Erik On Mar 12, 2009, at 8:28 AM, Bruno Aranda wrote: Hi, I am trying to disable stemming from the analyzer, but I am not sure how to do it. For

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Bruno Aranda
Thanks for your answer, I am trying now with this custom text field: fieldType name=textIntact class=solr.TextField positionIncrementGap=100 analyzer tokenizer class=solr.WhitespaceTokenizerFactory/ filter class=solr.StopFilterFactory ignoreCase=true words=stopwords.txt/

How to correctly boost results in Solr Dismax query

2009-03-12 Thread Pete Smith
Hi, I have managed to build an index in Solr which I can search on keyword, produce facets, query facets etc. This is all working great. I have implemented my search using a dismax query so it searches predetermined fields. However, my results are coming back sorted by score which appears to be

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Erik Hatcher
What is the full query you're issuing to Solr and the corresponding request handler configuration? Chances are you're using the dismax query parser, which does not support wildcards. Other things to check, be sure you've tied the field to your new textIntact type, and that you're

RE: Combination of EmbeddedSolrServer and CommonHttpSolrServer

2009-03-12 Thread Kulkarni, Ajit Kamalakar
Hi Shalin Shekhar Mangar, Thanks for your inputs. Please see my comments below. I wish to know if there is any user who used EmbeddedSolrServer for indexing and CommonsHttpSolrServer for search. I have found that this combination offers better performance for indexing. Searching becomes

Operators and Minimum Match with Dismax handler

2009-03-12 Thread hbi dev
Hi All, I have a question regarding the dismax handler and minimum match (mm=) I have an index which we are setting the default operator to AND. Am I right in saying that using the dismax handler, the default operator in the schema file is effectively ignored? (This is the conclusion I've made

Re: Solr 1.3; Data Import w/ Dynamic Fields

2009-03-12 Thread Wesley Small
I was successful at distributing the Solr-1.4-DEV data import functionality within the Solr 1.3 war. 1. Copy the data import’s src directory from 1.4 to 1.3. 2. Made sure to used the data import’s build.xml already existing in Solr 1.3 3. Commented out all code within #SolrWriter.rollback method

Is wiki page still accurate

2009-03-12 Thread Eric Pugh
Folks, Is this section title Full Import Example on http://wiki.apache.org/solr/DataImportHandler still accurate? The steps referring to the example-solr-home.jar and the SOLR-469 patch seem out of date with where 1.4 is today? Seems like the example-DIH stuff is simpler/more direct

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Bruno Aranda
Thanks again. This is the default request handler: requestHandler name=standard class=solr.SearchHandler default=true !-- default values for query parameters -- lst name=defaults str name=echoParamsexplicit/str /lst /requestHandler Doing this query:

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Erik Hatcher
On Mar 12, 2009, at 10:47 AM, Bruno Aranda wrote: Doing this query: http://localhost:18080/solr/core_pub/select/?q=mitab:Nefh Find 1 result. The term Nefh is found in the field mitab. Doing: http://localhost:18080/solr/core_pub/select/?q=mitab:Nefh* Finds nothing. I have realised that Ne*

Re: How to remove stemming from the analyzer - Finding blah when searching for blah*

2009-03-12 Thread Bruno Aranda
Thank you! Next time I will remind not to change the words to make the example simpler... blah is not the same as Nefh :-) Thanks, Bruno 2009/3/12 Erik Hatcher e...@ehatchersolutions.com On Mar 12, 2009, at 10:47 AM, Bruno Aranda wrote: Doing this query:

Programmatic access to other handlers

2009-03-12 Thread Pascal Dimassimo
Hi, I've designed a front handler that will send request to other handlers and return a aggregated response. Inside this handler, I call other handlers like this (inside the method handleRequestBody): SolrCore core = req.getCore(); SolrRequestHandler mlt = core.getRequestHandler(/mlt);

Re: Tomcat holding deleted snapshots until it's restarted

2009-03-12 Thread Marc Sturlese
I have noticed that the first time I execute full import (having an old index in the index folder) once it is done, the old indexsearcher will be closed: 2009-03-12 13:05:06,200 [pool-7-thread-1] INFO org.apache.solr.core.SolrCore - [core_01] Registered new searcher searc...@c6692 main

Solr 1.4: filter documens using fields

2009-03-12 Thread Rui António da Cruz Pereira
Hi all! I'm using StandardRequestHandler and I wanted to filter results by two fields in order to avoid duplicate results (in this case the documents are very similar, with differences in fields that are not returned in a query response). For example, considering the response: doc long

Re: Is wiki page still accurate

2009-03-12 Thread Shalin Shekhar Mangar
On Thu, Mar 12, 2009 at 8:05 PM, Eric Pugh ep...@opensourceconnections.comwrote: Folks, Is this section title Full Import Example on http://wiki.apache.org/solr/DataImportHandler still accurate? The steps referring to the example-solr-home.jar and the SOLR-469 patch seem out of date with

RE: Replication in 1.3

2009-03-12 Thread Vauthrin, Laurent
Just so I'm clear on it, do you mean Windows replication via Cygwin is not supported or not possible? If it's possible, I'm just curious if anyone else on the list has experience with it. Thanks, Laurent -Original Message- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf

Re: Is wiki page still accurate

2009-03-12 Thread Shalin Shekhar Mangar
On Thu, Mar 12, 2009 at 10:04 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Thu, Mar 12, 2009 at 8:05 PM, Eric Pugh ep...@opensourceconnections.com wrote: Folks, Is this section title Full Import Example on http://wiki.apache.org/solr/DataImportHandler still accurate? The

Re: Replication in 1.3

2009-03-12 Thread Yonik Seeley
On Thu, Mar 12, 2009 at 12:34 PM, Vauthrin, Laurent laurent.vauth...@disney.com wrote: Just so I'm clear on it, do you mean Windows replication via Cygwin is not supported or not possible? Not really possible - the strategy the scripts use won't work on Windows because of the different

Re: Tomcat holding deleted snapshots until it's restarted

2009-03-12 Thread Chris Hostetter
: I have noticed that the first time I execute full import (having an old index : in the index folder) once it is done, the old indexsearcher will be closed: ... : The problem is that if I do another full-import... the old searcher will not : be closed, there will just appear the line:

Re: Tomcat holding deleted snapshots until it's restarted

2009-03-12 Thread Marc Sturlese
: Just to clarify: : a) what does the stats page show (in terms of the number of : Searchers listed in the CORE section) after a couple of full imports? After 4 full-imports it will show 3 indexsearchers. I have also printed the var _searchers from SolrCore.java and it shows me 3

stemming (maybe?) question

2009-03-12 Thread Jon Drukman
is it possible to make solr think that omeara and o'meara are the same thing? -jsd-

RE: Replication in 1.3

2009-03-12 Thread Vauthrin, Laurent
Thanks for the reply. Hopefully 1.4 will come soon enough so that we can still use Windows. -Original Message- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Thursday, March 12, 2009 9:55 AM To: solr-user@lucene.apache.org Subject: Re: Replication in

fl wildcards

2009-03-12 Thread Schley Andrew Kutz
If I wanted to hack Solr so that it has the ability to process wildcards for the field list parameter (fl), where would I look? (Perhaps I should look on the solr-dev mailing list, but since I am already on this one I thought I would start here). Thanks! -- -a Ideally, a code library must

Re: Tomcat holding deleted snapshots until it's restarted

2009-03-12 Thread Yonik Seeley
On Thu, Mar 12, 2009 at 1:34 PM, Marc Sturlese marc.sturl...@gmail.com wrote: : Just to clarify: : a) what does the stats page show (in terms of the number of : Searchers listed in the CORE section) after a couple of full imports? After 4 full-imports it will show 3 indexsearchers. I have

Adding authentication Token to the CommonsHttpSolrServer

2009-03-12 Thread Narayanan, Karthikeyan
Hi, We have installed the Solr in Tomcat server and enabled the security constraint at the Tomcat level.. We require to pass the authentication token(cookie) to the search call that is made using CommonsHttpSolrServer. Would like to know how can I add the token to the CommonsHttpSolrServer.

Re: stemming (maybe?) question

2009-03-12 Thread Yonik Seeley
On Thu, Mar 12, 2009 at 1:36 PM, Jon Drukman jdruk...@gmail.com wrote: is it possible to make solr think that omeara and o'meara are the same thing? WordDelimiter would handle it if the document had o'meara (but you may or may not want the other stuff that comes with WordDelimiterFilter). You

DIH outer joins

2009-03-12 Thread Rui António da Cruz Pereira
I have queries with outer joins defined in some entities and for the same root object I can have two or more lines with different objects, for example: Taking the following 3 tables, andquery defined in the entity with outer joins between tables: Table1 - Table2 - Table3 I can have the

Re: Programmatic access to other handlers

2009-03-12 Thread Pascal Dimassimo
I found this code to access other core from my custom requesthandler: CoreContainer.Initializer initializer = new CoreContainer.Initializer(); CoreContainer cores = initializer.initialize(); SolrCore otherCore = cores.getCore(otherCore); It seems to work with some little testing. But is it a

DIH use of the ?command=full-import entity= command option

2009-03-12 Thread Fergus McMenemie
Hello, Can anybody describe the intended purpose, or provide a few examples, of how the DIH entity= command option works. Am I supposed to build a data-conf.xml file which contains many different alternate entities.. or Regards --

Re: Programmatic access to other handlers

2009-03-12 Thread Pascal Dimassimo
Thanks ryantxu for your answer. I implement the interface and it returns me the current core. But how is it different from doing request.getCore() from handleRequestBody()? And I don't see how this can give me access to other cores. I think that what I need is to get access to an instance of

Re: Programmatic access to other handlers

2009-03-12 Thread Chris Hostetter
: I implement the interface and it returns me the current core. But how is it : different from doing request.getCore() from handleRequestBody()? And I don't i think ryan missunderstood your goal .. that's just a way for you to get access to your core prior to handling requests. : see how this

Issues with stale searchers.

2009-03-12 Thread Jeremy Carroll
I have Solr 1.3 running on Apache Tomcat 5.5.27. I'm running into an issue where searchers are opened up right away when tomcat starts, and never goes away. This is causing read locks on the Lucene index holding open deleted files during merges. This causes our server to run out of disk space

Re: DIH use of the ?command=full-import entity= command option

2009-03-12 Thread Paul Libbrecht
Wouldn't an entity be something such as a stream, or DB, a manifest- channel? The name source would be better to me but... there's the sQL data- sources. paul Le 12-mars-09 à 22:47, Fergus McMenemie a écrit : Can anybody describe the intended purpose, or provide a few examples, of how the

Re: OR/NOT query syntax

2009-03-12 Thread Jonathan Haddad
I might be wrong on this, but since you can't do a query that's just a NOT statement, this wouldn't work either. I believe the NOT must negate results of a query, not the entire dataset. On Wed, Mar 11, 2009 at 6:56 PM, Andrew Wall rew...@gmail.com wrote: I'm attempting to write a solr query

Re: OR/NOT query syntax

2009-03-12 Thread Yonik Seeley
On Wed, Mar 11, 2009 at 9:56 PM, Andrew Wall rew...@gmail.com wrote: I'm attempting to write a solr query that ensures that if one field has a particular value that another field also have a particular value. I've arrived at this syntax, but it doesn't seem to work correctly.

RE: Issues with stale searchers.

2009-03-12 Thread Jeremy Carroll
If that's the case it is causing out of disk issues with Solr. We have a 187m document count index which is about ~200Gb in size. Over a period of about a week after optimizations, etc... the open file but deleted count grows very large. Causing the system to not be able to optimize due to lack

SolrJ : EmbeddedSolrServer and database data indexing

2009-03-12 Thread Ashish P
Is it possible to index DB data directly to solr using EmbeddedSolrServer. I tried using data-Config File and Full-import commad, it works. So assuming using CommonsHttpServer will also work. But can I do it with EmbeddedSolrServer?? Thanks in advance... Ashish -- View this message in context:

Re: Issues with stale searchers.

2009-03-12 Thread Yonik Seeley
On Thu, Mar 12, 2009 at 9:38 PM, Jeremy Carroll jeremy.carr...@networkedinsights.com wrote: If that's the case it is causing out of disk issues with Solr. We have a 187m document count index which is about ~200Gb in size. Over a period of about a week after optimizations, etc... the open file

Re: SolrJ : EmbeddedSolrServer and database data indexing

2009-03-12 Thread Ashish P
Is there any api in SolrJ that calls the dataImportHandler to execute commands like full-import and delta-import. Please help.. Ashish P wrote: Is it possible to index DB data directly to solr using EmbeddedSolrServer. I tried using data-Config File and Full-import commad, it works. So

Re: DIH use of the ?command=full-import entity= command option

2009-03-12 Thread Shalin Shekhar Mangar
On Fri, Mar 13, 2009 at 3:17 AM, Fergus McMenemie fer...@twig.me.uk wrote: Hello, Can anybody describe the intended purpose, or provide a few examples, of how the DIH entity= command option works. Am I supposed to build a data-conf.xml file which contains many different alternate

Re: DIH use of the ?command=full-import entity= command option

2009-03-12 Thread Fergus McMenemie
If my data-config.xml contains multiple root level entities what is the expected action if I call full-import without an entity=XXX sub-command? Does it process all entities one after the other or only the first? (It would be useful IMHO if it only did the first.) On Fri, Mar 13, 2009 at 3:17

Re: CJKAnalyzer and Chinese Text sort

2009-03-12 Thread Sachin
Thanks Hoss for your comments! I don't mind submitting it as a patch, shall I create a issue in Jira and submit the patch with that? Also, I didn't modify the core solr for locale based sorting; I just added the created a jar file with the class file copied it over to the lib folder. As part

Re: DIH use of the ?command=full-import entity= command option

2009-03-12 Thread Shalin Shekhar Mangar
On Fri, Mar 13, 2009 at 10:44 AM, Fergus McMenemie fer...@twig.me.ukwrote: If my data-config.xml contains multiple root level entities what is the expected action if I call full-import without an entity=XXX sub-command? Does it process all entities one after the other or only the first? (It