Re: Question about query
Hey ... 10x for you reply ... unfortunately this is not a case for me .. I have canceled the feature which needs this ... KInd regards Armando Erick Erickson wrote: One thing I've seen suggested is to add the number of values to a separate field, say topic_count. Then, in your situation above you could append AND topic_count=1. This can extend to work if you wanted any number of matches (and only that number). For instance, topic=5 AND topic=10 AND topic=20 AND topic_count=3 would give you article 4. Don't know if this works in your particular situation Erick On Mon, Mar 22, 2010 at 10:32 AM, Armando Ota armando...@siol.net wrote: Hi I need a little help with query for my problem (if it can be solved) I have a field in a document called topic this field contains some values, 0 (for no topic) or 1 (topic 1), 2, 3, etc ... It can contain many values like 1, 10, 50, etc (for 1 doc) So now to the problem: I would like to get documents that have 0 for topic value and documents that only have for example 1 for topic value inserted articles for example: article 1topics: 1, 5, 10, 20, 24 article 2 topics: 0 article 3 topics: 1 article 4 topic: 5, 10, 20 article 5 topic: 1, 13, 19 So I need search query to return me only article 2 and 3 not other articles with 1 for topic value Can that be done ? Any help appreciated Kind regards Armando
Re: synonyms problem
Have you tried increasing memory size ? we had some out of memory problems when we used default memory size .. Kind regards Armando michaelnazaruk wrote: Hi all! I have a little problem with synonyms: when I set my synonyms.txt file such as: aberrant=abnormal,unusual,deviant,anomalous,peculiar,uncharacteristic,irregular,atypical it's all right! But if I set this file such as aberrant,abnormal,unusual,deviant,anomalous,peculiar,uncharacteristic,irregular,atypical I get exception that not enough memory
Re: Question about query
Hey Thank you for your reply .. but it's not working ... I still get other articles Kind regards Armando Abdelhamid ABID wrote: Well, here what I figure out ! (mm=150% , qf=topic , q=1 0 ) == q=topic:0 or topic:1 On 3/22/10, Armando Ota armando...@siol.net wrote: Hi I need a little help with query for my problem (if it can be solved) I have a field in a document called topic this field contains some values, 0 (for no topic) or 1 (topic 1), 2, 3, etc ... It can contain many values like 1, 10, 50, etc (for 1 doc) So now to the problem: I would like to get documents that have 0 for topic value and documents that only have for example 1 for topic value inserted articles for example: article 1topics: 1, 5, 10, 20, 24 article 2 topics: 0 article 3 topics: 1 article 4 topic: 5, 10, 20 article 5 topic: 1, 13, 19 So I need search query to return me only article 2 and 3 not other articles with 1 for topic value Can that be done ? Any help appreciated Kind regards Armando
Re: Query interface
Hey ... Thank you very much .. been strugling with this for hours now :( Will have to change the feature .. somehow :D Kind regards Armando Abdelhamid ABID wrote: Hi, I think there isn't better than using XSLT as a mean to query solr and render results. Within an xslt file you would combine search form with search results in one place, by this way you free the server from the heavy duty tasks of xslt transformation and let the client -which is in the most cases a browser- do the work. On 3/22/10, Gora Mohanty g...@srijan.in wrote: On Mon, 22 Mar 2010 15:26:41 +0100 Sebastian Funk qbasti.f...@googlemail.com wrote: hey there, i've been using solr for some time now and set everything up the way it's supposed to.. now for the user interface: simply writing a javascript (or something else) website that passes the query-URL to solr and interprets the XML given as a result. is that the easiest way? i've noticed some problems with umlauts etc.. when using jetty or tomcat as a server.. is there another way to query solr and retrieve the results? [...] Many modern frameworks (I certainly know of Ruby on Rails, and Django), have Solr integrated via an application. I really like Django Haystack for how it offers an easy way to get started with various search back-ends, with a very Django-ish feel to the interface: http://haystacksearch.org/ Regards, Gora