Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi, SOLR-1129 seems to have been solved . Can I apply the patch? 2009/8/11 Noble Paul നോബിള്‍ नोब्ळ् > On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > > Ah! I guessed you were using it this way. > > > > I would need to reconfirm this, but

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Noble Paul നോബിള്‍ नोब्ळ्
On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > Ah! I guessed you were using it this way. > > I would need to reconfirm this, but there seems to be an inconsistency in > fetching data versus adding data via SolrJ w.r.t dynamic fields. > SOLR-1129

Re: Lock timed out 2 worker running

2009-08-10 Thread Chris Hostetter
: > 5) are these errors appearing after Solr crashes and you restart it? : : : Yep, I can't find the logs but it's something like can't obtain lock for : .lck Need to delete that fiile in order to start the solr properly wait ... either you missunderstood my question, or you just explained wha

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
Well there are multiple ways to do it. Instead of using your own class (with annotated fields), you can directly use an instance of SolrInputDocument for each document and call a SolrServer.add(SolrInputDocument doc). For each SolrInputDocument, you can use the addField(String name, Object value) t

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi Avlesh, Can you tell me a work around to this problem?? Till you have this resolved.:) Regards, Ninad. On Tue, Aug 11, 2009 at 11:16 AM, Avlesh Singh wrote: > Ah! I guessed you were using it this way. > > I would need to reconfirm this, but there seems to be an inconsistency in > fetching dat

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
Ah! I guessed you were using it this way. I would need to reconfirm this, but there seems to be an inconsistency in fetching data versus adding data via SolrJ w.r.t dynamic fields. SOLR-1129is essentially about binding the response into a bean with

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
This is the POJO field mapping: @Field("*_ne") Map ne = new HashMap(); this is how I set the value: Map namedEntity = new HashMap(); namedEntity.put("Germinait", "0.7"); ithursDocument.setNe(namedEntity); server.addBean(ithursDocument); server.commit(); The schema had this dynamic field:

Re: Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Avlesh Singh
Weird that you get to see a field name like "ne_.*" in the response. I am afraid that you might be using the field in an incorrect way. Can you share the field definition please? And a peek into how are you populating these fields? Cheers Avlesh On Tue, Aug 11, 2009 at 10:29 AM, Ninad Raut wrote:

Retrieving the boost factor using Solrj CommonsHttpSolrServer

2009-08-10 Thread Villemos, Gert
I'm using the solrj CommonsHttpSolrServer to retrieve documents from the index for update. I therefore also need to retrieve the boost factor as else each resubmission would reset the boost factor. I just cant figure out how to retrieve the boost factor. The boost factor is available in the So

Querying Dynamic Fields.. simple query not working

2009-08-10 Thread Ninad Raut
Hi, when I do a *:* query I can see the dynamic field as show below: {Germinait=0.7} but when I try to query for the same like ne_Germinait:0.7 I get zero records. All the other field which are not dynamic can be easily queried. Can some one please tell me how to query for dynamic fields? Thanks. N

Re: Newbie problem ordering results

2009-08-10 Thread Avlesh Singh
Can you please post the fieldType definition for the "string" field in your schema.xml? Cheers Avlesh On Tue, Aug 11, 2009 at 9:52 AM, Germán Biozzoli wrote: > Hello everybody > > I have the following (resumed) schema: > > > multiValued="true"/> >multiValued="true"/> >multiValue

Re: dealing with duplicates

2009-08-10 Thread Avlesh Singh
Can you please provide your schema details here? Cheers Avlesh On Tue, Aug 11, 2009 at 1:29 AM, Joe Calderon wrote: > so in the case someone can help me with the query syntax, the > relational query i would use for this would be something like: > > SELECT * FROM videos > WHERE > title LIKE 'fami

Newbie problem ordering results

2009-08-10 Thread Germán Biozzoli
Hello everybody I have the following (resumed) schema: . ... I use for instance contributor for searching, contributorfacet for faceting and order for ordering results, but when I try to order using contributororder, Solr says that cannot order by a tokeni

Question mark glyphs in indexed content

2009-08-10 Thread Rupert Fiasco
Hello, I am using the latest Solr4j to index content. When I look at that content in the Solr Admin web utility I see weird characters like this: http://brockwine.com/images/solrglyphs.png When I look at the text in the MySQL DB those chars appear to just be plain hyphens. The MySQL table charact

Re: excluding certain terms from facet counts when faceting based on indexed terms of a field

2009-08-10 Thread Bill Au
I just upgraded to Solr 1.4/Lucene 2.9 for something else so I am trying to see if I can use localParams to exclude certain terms from the facet counts. I tried the suggested: facet.field={!terms=foo,bar}cat actually only shows the facet counts of "foo" and "bar". What I want is to exclude a va

Overview of Query Parsing API Stack? / Dismax parsing, new 1.4 parsing, etc.

2009-08-10 Thread Mark Bennett
There's some good Wiki pages on the syntax to use for queries, including nested queries. But trying traipse through the code to get "the big picture" is a bit involved. A couple example: Over the past few months I've had several questions about dismax, and why it was or wasn't doing something a

Re: UTF-8 query support?

2009-08-10 Thread Darren Govoni
Thank you! I am using Tomcat and will give it a try. On Mon, 2009-08-10 at 16:31 +0200, Mats Lindh wrote: > On Mon, Aug 10, 2009 at 4:19 PM, Darren Govoni wrote: > > How do I set UTF-8 encoding so lucene can find the documents since it > > supports UTF-8 queries? > > This depends on the app serve

Re: dealing with duplicates

2009-08-10 Thread Joe Calderon
so in the case someone can help me with the query syntax, the relational query i would use for this would be something like: SELECT * FROM videos WHERE title LIKE 'family guy' AND desc LIKE 'stewie%' AND ( ( is_dup = 0 ) OR ( is_dup = 1 AND id NOT IN ( SELECT id FROM videos WHERE

Re: Relevant results with DisMaxRequestHandler

2009-08-10 Thread Vincent Pérès
I actually have an other question... The 'qf' parameter used in the dismax seems to work with a 'AND' separator. I have much more results without dixmax. Is there any way to keep the same amount of document and process the 'qf' ? My dismax : dismax explicit 0.01

Re: Relevant results with DisMaxRequestHandler

2009-08-10 Thread Vincent Pérès
Hello, Thank you for your answer, I finally used only a 'qf' parameter in the dismax requesthandler and it seems that I have now better and more relevant results. I just don't understand why a result is mainly boosted by his last update by default ! Vincent -- View this message in context: htt

Re: [OT] Solr Webinar

2009-08-10 Thread Lucas F. A. Teixeira
Hello Grant, Will the webinar be recorded and available to download later someplace? Unfortunately, I can't watch this time. Thanks, []s, Lucas Frare Teixeira .·. - lucas...@gmail.com - blog.lucastex.com - twitter.com/lucastex On Mon, Aug 10, 2009 at 12:33 PM, Grant Ingersoll wrote: > I will

[OT] Solr Webinar

2009-08-10 Thread Grant Ingersoll
I will be giving a free one hour webinar on getting started with Apache Solr on August 13th, 2009 ~ 11:00 AM PDT / 2:00 PM EDT You can sign up @ http://www2.eventsvc.com/lucidimagination/081309?trk=WR-AUG2009-AP I will present and demo: * Getting started with LucidWorks for Solr * Getting bet

Re: Embedded Solr Clustering

2009-08-10 Thread born2fish
Thanks Shalin and Avlesh for your responses. Yes we are using Solr for a non-traditional search purpose and the performance is critical. However it sounds like that sharing the same index could slow down reading / writing to the index. And access synchronization is tricky as well. Therefore, we

Re: UTF-8 query support?

2009-08-10 Thread Mats Lindh
On Mon, Aug 10, 2009 at 4:19 PM, Darren Govoni wrote: > How do I set UTF-8 encoding so lucene can find the documents since it > supports UTF-8 queries? This depends on the app server you're using. I'm guessing Tomcat (as that's where I had the same issue), and you can fix this by enabling UTF-8 en

Re: UTF-8 query support?

2009-08-10 Thread Yonik Seeley
Your URL suggests you set up your own servlet container - that's probably the issue. If you're using tomcat see http://wiki.apache.org/solr/SolrTomcat Test out your config with example/exampledocs/test_utf8.sh -Yonik http://www.lucidimagination.com On Mon, Aug 10, 2009 at 10:19 AM, Darren Govon

Re: mergeContiguous for multiple search terms

2009-08-10 Thread Koji Sekiguchi
Hachmann, Bjoern wrote: Hello, we would like to use the highlightingComponent with the mergeContiguous parameter set to true. We have a field with value: Ökonom Charles Goodhart. If we search for all three words, they are found correctly: Ökonom Charles Goodhart But, as I set the mergeCo

UTF-8 query support?

2009-08-10 Thread Darren Govoni
Hi, I tried to query my text field with a UTF-8 string that was in the indexed document, but it returned nothing. e.g. http://192.168.2.10:8081/solr4/select/?q=%E5%BE%93%E6%9D%A5%E9%80%9A%E3% 82%8A&version=2.2&start=0&rows=10&indent=on The result page showed a garbled query string (wrong encodi

Re: MoreLikeThis: How to get quality terms from html from content stream?

2009-08-10 Thread Grant Ingersoll
Right, a SearchComponent wrapper around some of the Solr Cell capabilities could make this so. On Aug 9, 2009, at 11:21 AM, Jay Hill wrote: Solr Cell definitely sounds like it has a place here. But wouldn't it be needed for as an extracting component earlier in the process for the MoreLikeT

Re: Pojo not getting added to Solr Index

2009-08-10 Thread Ninad Raut
thanks Avlesh, u saved my day... !! yes I am not going to have a new instance of server every time... this is just a Proof of concept. On Mon, Aug 10, 2009 at 6:06 PM, Avlesh Singh wrote: > > > > Where am I going wrong?? > > > I think you forgot to "commit" after adding beans via the SolrServer

Re: Pojo not getting added to Solr Index

2009-08-10 Thread Avlesh Singh
> > Where am I going wrong?? > I think you forgot to "commit" after adding beans via the SolrServer. PS: I am damn sure that you don't intend to create a new instance of CommonsHttpSolrServer everytime. Cheers Avlesh On Mon, Aug 10, 2009 at 5:55 PM, Ninad Raut wrote: > I am not getting any excp

Pojo not getting added to Solr Index

2009-08-10 Thread Ninad Raut
I am not getting any excpetion, but the document is not getting added to Solr. Here is the code: public class ClientSearch { public SolrServer getSolrServer() throws MalformedURLException{ //the instance can be reused return new CommonsHttpSolrServer("http://germinait22:8983/solr/core0/";);

AW: mergeContiguous for multiple search terms

2009-08-10 Thread Hachmann, Bjoern
Hallo, we are using Solr-1.3. Thanks for your time. Björn > -Ursprüngliche Nachricht- > Von: > solr-user-return-24991-hachmann.bjoern=guj...@lucene.apache.or > g > [mailto:solr-user-return-24991-hachmann.bjoern=guj...@lucene.a > pache.org] Im Auftrag von Avlesh Singh > Gesendet: Mon

Multiple Unique Ids

2009-08-10 Thread Ninad Raut
Hi, I have two Ids DocumentId and AuthorId. I want both of them unique. Can i have two in my document? id authorId Regards, Ninad Raut

Re: storing pair in Solr document

2009-08-10 Thread Avlesh Singh
> > Can we use SimpleOrderedMap? > No, Ninad that wouldn't work. Cheers Avlesh On Mon, Aug 10, 2009 at 11:46 AM, Ninad Raut wrote: > Hi Avlesh, > Can we use SimpleOrderedMap? It seems deprecated. Is it safe to use , and > how is going to be mapped to the field? > @Field("ne") > SimpleOrderedMap