Implementing a facet search

2009-04-08 Thread Sajith Weerakoon
Hi all, I want to implement a facet search for my application. Can some1 of you help me out? Thanks, Regards, Sajith Vimukthi Weerakoon.

Re: DIH; Hardcode field value/replacement based on source column

2009-04-08 Thread Fergus McMenemie
: Indeed. I wrote the following test: : : Pattern p = Pattern.compile((.*)); : Matcher m = p.matcher(xyz); : Assert.assertEquals(, Video, m.replaceAll(Video)); : : The test fails. It gives VideoVideo as the actual result. I guess there is : something about Matcher.replaceAll that I don't know.

Re: httpclient.ProtocolException using Solrj

2009-04-08 Thread vivek sar
Hi, Any ideas on this issue? I ran into this again - once it starts happening it keeps happening. One of the thread keeps failing. Here are my SolrServer settings, int socketTO = 0; int connectionTO = 100; int maxConnectionPerHost = 10; int maxTotalConnection =

Re: How could I avoid reindexing same files?

2009-04-08 Thread Veselin Kantsev
Hi Fergus, On Tue, Apr 07, 2009 at 05:06:23PM +0100, Fergus McMenemie wrote: Thank you much Fergus, I was considering implementing a database which would hold a path name and an MD5 sum of each file. Snap. That is close to what we did. However due to our pervious duff full text search

Re: Searching on mulit-core Solr

2009-04-08 Thread vivek sar
Thanks Fergus. I'm still having problem with multicore search. I tried the following with two cores (they both share the same schema and solrconfig.xml) on the same box on same solr instance, 1) http://10.4.x.x:8080/solr/core0/admin/ - works fine, shows all the cores in admin interface 2)

Re: How could I avoid reindexing same files?

2009-04-08 Thread Fergus McMenemie
Hi Fergus, On Tue, Apr 07, 2009 at 05:06:23PM +0100, Fergus McMenemie wrote: Thank you much Fergus, I was considering implementing a database which would hold a path name and an MD5 sum of each file. Snap. That is close to what we did. However due to our pervious duff full text search

Talking to solr

2009-04-08 Thread Muhammed Sameer
Salaam, I am running solr on port 8080 of my box, I need to write a check that actually telnets tothe solr box and exchanges some commands, so I can be sure that solr is up and running Is there something that I can do to achieve this, like when we telnet to the mail server we can exchange

Re: httpclient.ProtocolException using Solrj

2009-04-08 Thread Noble Paul നോബിള്‍ नोब्ळ्
do you see the same problem when you use a single thread? what is the version of SolrJ that you use? On Wed, Apr 8, 2009 at 1:19 PM, vivek sar vivex...@gmail.com wrote: Hi,  Any ideas on this issue? I ran into this again - once it starts happening it keeps happening. One of the thread

Re: Implementing a facet search

2009-04-08 Thread Grant Ingersoll
See http://wiki.apache.org/solr/SimpleFacetParameters On Apr 8, 2009, at 2:53 AM, Sajith Weerakoon wrote: Hi all, I want to implement a facet search for my application. Can some1 of you help me out? Thanks, Regards, Sajith Vimukthi Weerakoon.

Re: How could I avoid reindexing same files?

2009-04-08 Thread Veselin K
Useful tip Erik, this will save a lot of hassle. Thank you much. Regards, Veselin K On Tue, Apr 07, 2009 at 11:29:38AM -0400, Erik Hatcher wrote: Note that Solr (trunk, soon to be 1.4) has a duplicate detection feature that may work for your need. See

Re: Talking to solr

2009-04-08 Thread Markus Jelsma - Buyways B.V.
Hello, For checking if Solr is up and running you could ping it on the following URL: http://coconuts:8080/solr/admin/ping/?echoParams=none response lst name=responseHeader int name=status0/int int name=QTime3/int /lst str name=statusOK/str /response This should always return OK, if not, if

hardware requirements for solr

2009-04-08 Thread Roman Dissertori
Hello all, I want to use solr only(for performance reason) on a single server. What would be the minimum hardware requirements and what OS would you suggest for that? Thanks and regards, Roman Dissertori

Re: using multisearcher

2009-04-08 Thread Brent Palmer
Hi Hoss, The indexes are local. Also they are very different sizes and I think that the merged results could be really wonky when using DistributedSearch because of it (although I might be totally wrong about that). As for the second part, I was thinking of trying to replace the standard

Re: solr 1.4 memory jvm

2009-04-08 Thread sunnyfr
Do you have an idea? sunnyfr wrote: Hi, So I did two test on two servers; First server : with just replication every 20mn like you can notice: http://www.nabble.com/file/p22930179/cpu_without_request.png cpu_without_request.png

Schema.xml:Appending a field value to another field value

2009-04-08 Thread Udaya
Hi, Need your help, I would like to know how we could append or add one field value to another field in Scheme.xml My scheme is as follows (only the field part is given): Scheme.xml fields field name=topics_id type=integer indexed=true stored=true required=true / field name=topics_subject

Re: Times Replicated Since Startup: 109 since yesterday afternoon?

2009-04-08 Thread sunnyfr
Hi, Commit can't throw away the cache, so how people do? everytime they have update to do? they lost their cache ??? I still can't imagine how the search engine can works this way? How people do to have update on their website? Shalin Shekhar Mangar wrote: On Mon, Mar 30, 2009 at 10:31

Re: httpclient.ProtocolException using Solrj

2009-04-08 Thread vivek sar
single thread everything works fine. Two threads are fine too for a while and all the sudden problem starts happening. I tried indexing using REST services as well (instead of Solrj), but with that too I get following error after a while, 2009-04-08 10:04:08,126 ERROR [indexerThreadPool-5]

Re: Highlighting not stored fields

2009-04-08 Thread Petr Gola
Yes, it is interesting one because I'm going to create multilingual index! :) Thanks a lot. It leads me to new idea - what about creating new service (request handler) of type do-highlight (instead of do-search). Adding something like HighlightRequest to Solr API and

questions regarding custom search component??

2009-04-08 Thread Antonio Eggberg
Hi, Currently I am using the DIH to create my index, all works fine. Now what I would like to do is to add some additional filed/value (which is not in my database that i am indexing) example adding categories from another file. I also have situation that this category might change over time

Using constants with DataImportHandler and MySQL ?

2009-04-08 Thread gateway0
Hi, I tried to do the following in my data-config.xml file: dataConfig dataSource type=JdbcDataSource driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/my_zend_appz user=root password=/ document entity name=ci_project query=select pr_id, pr_name, pr_comment from

Re: Using constants with DataImportHandler and MySQL ?

2009-04-08 Thread Shalin Shekhar Mangar
On Wed, Apr 8, 2009 at 10:23 PM, gateway0 reiterwo...@yahoo.de wrote: The problem as you see is the line: field name=definitionProjects/field I want to set a constant value for every row in the SQL table but it doesn´t work that way, any ideas? That is not a valid syntax. There are two

Field Collapsing Patch

2009-04-08 Thread Matthew Runo
Hello folks - Is anyone using the Field Collapsing patch from SOLR-236 (https://issues.apache.org/jira/browse/SOLR-236 ) in their production environment? We're considering using it, but wanted to ensure it was at a point where it could be used before spending a lot of time on it. Any

Re: Using constants with DataImportHandler and MySQL ?

2009-04-08 Thread Glen Newton
In MySql at least, you can do achieve what I think you want by manipulating the SQL, like this: mysql select foo as Constant1, id from Article limit 10; select foo as Constant1, id from Article limit 10; +---++ | Constant1 | id | +---++ | foo | 1 | | foo | 2

Re: Searching on mulit-core Solr

2009-04-08 Thread vivek sar
Any help on this issue? Would distributed search on multi-core on same Solr instance even work? Does it has to be different Solr instances altogether (separate shards)? I'm kind of stuck at this point right now. Keep getting one of the two errors (when running distributed search - single searches

Exception while solr commit

2009-04-08 Thread Narayanan, Karthikeyan
Hello, I am calling commit for every record (document) added/updated to the index. Our number of records size is 50k. Getting the following exception during commit. Is it correct approach to call commit for every insert/update?. Apr 7, 2009 4:41:23 PM

Query with bitwise operation

2009-04-08 Thread AlexxelA
One field of my document I use for solr is an integer. I want to do bitwise operations on that field in my queries Ex : status = 46 (in my solr document) In want to know if the bit #1 (2¹) = 1 -- (462) 0 ? or if bit #2 and #3 (2² + 2³) = 1 (4612) 0 ? Can we do something like this :

Re: Query with bitwise operation

2009-04-08 Thread Erik Hatcher
No, there is no support in the query parser for bit-wise queries like that. [Although there might be some funky function query magic that can do this?] My recommendation is to index each bit as a separate field (bit_0, bit_1, bit_2). You could define a dynamicField bit_* as a

Non-linear structure for search and index documents

2009-04-08 Thread Shairon
Hi all, I need index/search words extracted from pdf files with coordinates and page number, so I have this structure: - index the document id - a document has many pages - a page has many words - a word has geometry[w,h,x,y](inside of page) Is this possible with solr? If yes,

Re: How to copy the Dynamic fields into one field

2009-04-08 Thread Koji Sekiguchi
Radha C. wrote: Hi, Can I have the dynamic field in copyField as follows, dynamicField name=*_i type=integerindexed=true stored=true/ dynamicField name=*_txt type=textindexed=true stored=true/ copyField source=*_i dest=all/ copyField source=*_txt dest=all/ You can do

Its urgent! plz help in schema.xml- appending one field to another

2009-04-08 Thread Udaya
Hi, Need your help, I would like to know how we could append or add one field value to another field in Scheme.xml My scheme is as follows (only the field part is given): Scheme.xml fields field name=topics_id type=integer indexed=true stored=true required=true / field name=topics_subject

Re: Its urgent! plz help in schema.xml- appending one field to another

2009-04-08 Thread Koji Sekiguchi
Udaya wrote: Hi, Need your help, I would like to know how we could append or add one field value to another field in Scheme.xml My scheme is as follows (only the field part is given): Scheme.xml fields field name=topics_id type=integer indexed=true stored=true required=true / field

Re: solr 1.4 memory jvm

2009-04-08 Thread Noble Paul നോബിള്‍ नोब्ळ्
So what I decipher from the numbers is w/o queries Solr replication is not performing too badly. The queries are inherently slow and you wish to optimize the query performance itself. am I correct? On Tue, Apr 7, 2009 at 7:50 PM, sunnyfr johanna...@gmail.com wrote: Hi, So I did two test on

Re: Query with bitwise operation

2009-04-08 Thread Noble Paul നോബിള്‍ नोब्ळ्
I guess we must add functions for bitwise operations. say * bor * bxor * band * bcompliment These functionalities are trivial to add and may be useful for people who are familiar with bit operations --Noble On Thu, Apr 9, 2009 at 1:10 AM, Erik Hatcher e...@ehatchersolutions.com wrote: No,

Re: httpclient.ProtocolException using Solrj

2009-04-08 Thread Noble Paul നോബിള്‍ नोब्ळ्
are you using multipartrequest? if you are using the latest solrj can you try with the batch add method add(IteratorSolrInputDocument ) or add(Iterator? ) On Wed, Apr 8, 2009 at 10:13 PM, vivek sar vivex...@gmail.com wrote: single thread everything works fine. Two threads are fine too for a

Re: Java Runtime Environment: SIGSEGV

2009-04-08 Thread Alexandre Rafalovitch
This looks like a much bigger problem than Solr. Something is very wrong with JVM, libraries or general stability of 64-bit AMD installation. You probably should check you are on the latest patches for JVM and O/S before trying to tie it down to Solr issues. Regards, Alex. Personal blog:

Re: httpclient.ProtocolException using Solrj

2009-04-08 Thread Shalin Shekhar Mangar
Vivek, do you share the same SolrServer instance between your two threads? If so, are you using the MultiThreadedHttpConnectionManager when creating the HttpClient instance? On Wed, Apr 8, 2009 at 10:13 PM, vivek sar vivex...@gmail.com wrote: single thread everything works fine. Two threads are