Re: Bug ? unique id

2007-03-21 Thread Maarten . De . Vilder
ok, i'm starting to see the light :)) at this moment, we are running this for our uniqueID : field : and everything is working well ... so i dont explicitly say indexed='true' ... i guess indexed is default true ... i'll be sure do to do some testing with stored=false and indexed=false but tha

Create a summary of all categories within a search.

2007-03-21 Thread Thierry Collogne
Hello, I was wondering if the following is possible. If you do a search on wikeseek, you get a summary of categories on top of the page. Look here : http://www.wikiseek.com/results.php?q=java I was wondering if it i possible to do something similar using Solr. So far the only solution I see wit

How to assure a permanent index.

2007-03-21 Thread Thierry Collogne
Hello, Currently we are using lucene for our search on intranet, but we are thinking of replacing it with solr. While indexing, we have built in a system that assures us that there will be never be no lucene index for more than a few seconds. I was wondering if solr has something like that. I me

Re: How to assure a permanent index.

2007-03-21 Thread Thierry Collogne
Sorry. Did a send by accident. This the next part of the mail. I mean if I do the following. - delete all documents from the index - add all documents - do a commit. Will this result in a temporary empty index, or will I always have results?

Re: Create a summary of all categories within a search.

2007-03-21 Thread Bertrand Delacretaz
Hi Thierry, On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: ...I was wondering if it i possible to do something similar using Solr... Looks like you need faceted search, see the examples at the end of http://wiki.apache.org/solr/SimpleFacetParameters -Bertrand

Re: How to assure a permanent index.

2007-03-21 Thread Bertrand Delacretaz
On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: ...I mean if I do the following. - delete all documents from the index - add all documents - do a commit. Will this result in a temporary empty index, or will I always have results?... Changes to the index are invisibl

Re: How to assure a permanent index.

2007-03-21 Thread Maarten . De . Vilder
the documents are only deleted when you do a commit ... so you should never have an empty index (or at least not for more then a couple of seconds) note that you dont have to delete all documents you can just upload new documents with the same UniqueID and Solr will delete the old document

Re: Create a summary of all categories within a search.

2007-03-21 Thread Thierry Collogne
Thank you for the quick response. I wil take a look at it. On 21/03/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: Hi Thierry, On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: > ...I was wondering if it i possible to do something similar using Solr... Looks like you need faceted s

Re: How to assure a permanent index.

2007-03-21 Thread Thierry Collogne
Thank you for the quick response. I wil take a look at it. On 21/03/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: > ...I mean if I do the following. > > - delete all documents from the index > - add all documents > -

Problems with special characters

2007-03-21 Thread Thierry Collogne
Hello, I am using the post.jar file to update the search indexes. Problem is that foreign characters like é, à, ... don't work correctly. Even when I use the example xml files (like utf8-example.xml), the characters don't work. Could this be a problem with the post.jar? When I open the files in

Re: Problems with special characters

2007-03-21 Thread Bertrand Delacretaz
On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: ...I am using the post.jar file to update the search indexes. Problem is that foreign characters like é, à, ... don't work correctly... You're right, I have entered the issue in https://issues.apache.org/jira/browse/SOLR-194 For now, usi

Re: Problems with special characters

2007-03-21 Thread Bertrand Delacretaz
On 3/21/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: ...For now, using this as a workaround should help: java -Dfile.encoding=UTF-8 -jar post.jar http://localhost:8983/solr/update utf8-example.xml.. Should be fixed now, if you can grab the latest SimplePostToolCode [1] it should work ir

Re: Problems with special characters

2007-03-21 Thread Thierry Collogne
I have used you first workaround and this works for me. What would be the best way of building the SimplePostTool.java ? On 21/03/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: On 3/21/07,

Re: Problems with special characters

2007-03-21 Thread Bertrand Delacretaz
On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: ...What would be the best way of building the SimplePostTool.java You can use "ant example" in the top-level directory of the Solr source code. I have attached the current post.jar to SOLR-194 for convenience. -Bertrand

Re: Problems with special characters

2007-03-21 Thread Thierry Collogne
I used the new jar file and removed -Dfile.encoding=UTF-8 from my jar call and the problem isn't there anymore. Thanks a lot for the help. On 21/03/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote: On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: > ...What would be the best way of bui

Re: Problems with special characters

2007-03-21 Thread Bertrand Delacretaz
On 3/21/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: I used the new jar file and removed -Dfile.encoding=UTF-8 from my jar call and the problem isn't there anymore... ok, thanks for the feedback! -Bertrand

Re: Problems with special characters

2007-03-21 Thread Maarten . De . Vilder
hey, we had the same problem with the Solr Java Client ... they forgot to put UTF-8 encoding on the stream ... i posted our fix on http://issues.apache.org/jira/browse/SOLR-20 it's this post : http://issues.apache.org/jira/browse/SOLR-20#action_12478810 Frederic Hennequin [07/Mar/07 08:27 AM]

[ApacheCon] Early Bird registration ends Tuesday March 27th

2007-03-21 Thread Bertrand Delacretaz
Hi everybody, Please note that the Early Bird registration for the ApacheCon Europe 2007 (May 1-4, Amsterdam) ends soon, see below for the official announcement. See http://www.eu.apachecon.com/ for more details and for the program. Hope to see you there! -Bertrand ---

Re: Problems with special characters

2007-03-21 Thread Thierry Collogne
Thank you. When I add the code you described, the Solr Java Client works. One more question about the Solr Java Client. Does it allow the use of highlighting? I void a processHighlighting method in ResultsParser.java, but I can't find a way of enabling it. Did you use highlighting? On 21/03/07,

Re: How to assure a permanent index.

2007-03-21 Thread Walter Underwood
On 3/21/07 1:33 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > note that you dont have to delete all documents you can just upload > new documents with the same UniqueID and Solr will delete the old > documents automaticly ... this way you are guaranteed not to have an empty > index Th

Re: How to assure a permanent index.

2007-03-21 Thread Chris Hostetter
: > new documents with the same UniqueID and Solr will delete the old : > documents automaticly ... this way you are guaranteed not to have an empty : > index : : That works if you keep track of all documents that have disappeared : since the last index run. Otherwise, you end up with orphans in a

Wildcards

2007-03-21 Thread Michael Kimsal
Hello all: While I realize this goes against the grain of an indexing server, is there any way to do wildcard searching like the following: Term indexed is 123456789 Searching for *456* would find 123456789 Is there any mechanism to enable or allow for that scenario? Thanks! -- Michael Kims

Re: Thank you...

2007-03-21 Thread Yonik Seeley
On 3/20/07, Cass Costello <[EMAIL PROTECTED]> wrote: Heh - it used to be in my sig ... my bad. Thanks, all. :) http://www.stubhub.com I tried it out... looks great! Is the faceting stuff done with Solr too? If so is it the Solr built-in faceting, or a custom query handler? If the latter, can

Re: Wildcards

2007-03-21 Thread Erik Hatcher
Lucene now supports *456* type queries, however it requires setting an attribute to allow leading wildcards on the QueryParser. Solr does not set this flag (that I can tell in my quick search) so I don't believe you can do this with Solr currently, until/unless an option is made to set tha

Re: Wildcards

2007-03-21 Thread Michael Kimsal
I changed the 'leading wildcard' setting in the query parser (well, actually someone else here did, but it works). *789 works but *456* still doesn't work. Yeah, I guess I'm seeing the same behaviour as you are. Does this seem like a potential bug? Like the first * is cancelling out the logi

Re: Thank you...

2007-03-21 Thread Cass Costello
You all rock. I'm clearing the semi-official legal hurdle with my CTO and our head counsel to full (or something close to full) disclosure of some of the architectural details, so stay tuned for as much as I'm allowed to share (and btw, for any of you that live/work/vacation in the SF Bay area, I

Tiny term boost with an e in it

2007-03-21 Thread Brian Whitman
In an function that eventually becomes a Solr query, I create a few TermQuery clauses that go into a BooleanQuery. For each TermQuery, I do tq.setBoost( score ); where score is a float my app generates. This usually works except when the numbers get real small, like "2.712607e-4" that I jus

Re: Tiny term boost with an e in it

2007-03-21 Thread Yonik Seeley
On 3/21/07, Brian Whitman <[EMAIL PROTECTED]> wrote: In an function that eventually becomes a Solr query, I create a few TermQuery clauses that go into a BooleanQuery. For each TermQuery, I do tq.setBoost( score ); where score is a float my app generates. This usually works except when the numbe

Re: Wildcards

2007-03-21 Thread Michael Kimsal
This looks like a lucene issue. http://www.nabble.com/-jira--Created%3A-%28LUCENE-839%29-WildcardQuery-do-not-find-documents-if-leading-and-trailing-*-is-used-tf3435336.html And it appears to have been fixed recently: "This problem was already fixed since 2.1.0. " When was 2.1.0 out? Oh - las

Re: Wildcards

2007-03-21 Thread Michael Kimsal
Well, I recompiled SOLR against the latest lucene release (2.1.0) and it still doesn't work. The nabble reference page there indicates that it might not have worked right in 2.1.0 but someone there is suggesting that it works in the latest trunk. Is there perhaps something else that would need t

Re: Wildcards

2007-03-21 Thread Yonik Seeley
On 3/21/07, Michael Kimsal <[EMAIL PROTECTED]> wrote: Well, I recompiled SOLR against the latest lucene release (2.1.0) and it still doesn't work. The nabble reference page there indicates that it might not have worked right in 2.1.0 but someone there is suggesting that it works in the latest tr

SOLR hosting

2007-03-21 Thread Michael Kimsal
Are there any companies that offer hosted SOLR services? If not, is there any interest in the community in a service like this? -- Michael Kimsal http://webdevradio.com

Re: Thank you...

2007-03-21 Thread Otis Gospodnetic
Thanks for sharing the info, Cass. Is eBay still using Texis? (this used to be obvious from eBay's URLs a few years ago). I used Texis with their Vortex script before Lucene was born. Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - S

Question: Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer"

2007-03-21 Thread James liu
Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer" tomcat lib have this class jar. and set classpath to it. winxp + tomcat 6+ java 1.6, it work well. now i use freebsd6+tomcat 6+java 1.5_07(i recompiled solr.war) any one can help me to fix it? tomcat log(localhost.2007-03-22.l

Re: Question: Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer"

2007-03-21 Thread James liu
I just change analyzer from "jeasy.analysis.MMAnalyzer" to"* org.apache.lucene.analysis.standard.StandardAnalyzer*" it will work well. but i write test.java to use "jeasy.analysis.MMAnalyzer" and test.java work well. 2007/3/22, James liu <[EMAIL PROTECTED]>: Is it Parse error or tomcat n

Re: Question: Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer"

2007-03-21 Thread Chris Hostetter
: Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer" it's a problem parsing your schema.xml, because it can't find the analyzer class. : winxp + tomcat 6+ java 1.6, it work well. : : now i use freebsd6+tomcat 6+java 1.5_07(i recompiled solr.war) if it works in windows with java 1.

Re: Question: Is it Parse error or tomcat not find "jeasy.analysis.MMAnalyzer"

2007-03-21 Thread James liu
Yepi fix it. The problem is Tomcat's question. Thk u, Chris. i find you always first answer my question .Thk u

how to use snappuller

2007-03-21 Thread James liu
First try,,,i don't know how to use my scripts.conf: user=Administrator solr_hostname=localhost solr_port=8983 rsyncd_port=18983 data_dir= webapp_name=solr master_host=192.168.7.56 master_data_dir=data master_status_dir=data my cmd: bash bin/snappuller -M 192.168.7.56 -D bash bin/snappuller

Re: how to use snappuller

2007-03-21 Thread James liu
I think it work. but failed. [root@ /tmp/solr1]# bash bin/snappuller-enable [root@ /tmp/solr1]# bash bin/snappuller-enable -u root [root@ /tmp/solr1]# bash bin/snappuller -M 192.168.7.56 -D data -S data -u root Password: Password: Password: usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v

Re: Problems with special characters

2007-03-21 Thread Maarten . De . Vilder
we didnt use it, but i took a quick look : you need to implement the "hl=on" attribute in the getquerystring() method of the solrqueryImpl the resultdocs allready contain highlighting, that's why you found processHighlighting in the Resultparser good luck ! m "Thierry Collogne" <[EMAIL PRO

Re: How to assure a permanent index.

2007-03-21 Thread Maarten . De . Vilder
well, yes indeed :) but i do think it is easier to put up synchronisation for deleted documents as well clearing the whole index is kind of overkill when you do this : * delete all documents * submit all documents * commit you should also keep in mind that Solr will do an autocommit after a ce