Re: Solr Negative query

2010-11-14 Thread Leonardo Menezes
try
Field1:Val1 AND (*:* NOT Field2:Val2), that shoud work ok

On Sun, Nov 14, 2010 at 9:02 AM, Viswa S svis...@hotmail.com wrote:


 Dear Solr/Lucene gurus,
 I have run into a weird issue trying use a negative condition in my query.
 Parser:StandardQueryParserMy Query: Field1:Val1 NOT Field2:Val2Resolved as:
 Field1:Val1 -Field2:Val2
 The above query never returns any document, no matter how we use a
 paranthesis.
 I did see some suggestions on LuceneQParser to use something like:*:*
 Field1:Val1 -Field2:Val2
 This seems to return some documents, however it seems to ignore the first
 condition (Field1:Val1), Please help.
 ThanksVis


Job offer / Oferta de trabajo - Madrid, Spain

2010-07-09 Thread Leonardo Menezes
Hello,
 not sure if i should really send this kind of stuff to the list, but
since i guess it's only positive and someone might be interested... The
company i work at is looking for people with experience with SolR/Lucene.
Below, the offer:

http://www.infojobs.net/pozuelo-de-alarcon/programador-solr/of-icbca57230549aab73e4b484023657f


cheers,



Hola,
 no estoy seguro que deberia enviar este tipo de cosa a la lista, pero
como imagino que a alguien le podra venir bien... La empresa en la que
trabajo esta buscando gente con experiencia en SolR/Lucene. Sigue la oferta
abajo:

http://www.infojobs.net/pozuelo-de-alarcon/programador-solr/of-icbca57230549aab73e4b484023657f


saludos,


Leonardo Menezes


Re: solr connection question

2010-07-09 Thread Leonardo Menezes
jarrlll

On Fri, Jul 9, 2010 at 10:20 AM, Óscar Marín Miró
oscarmarinm...@gmail.comwrote:

 xD

 On Thu, Jul 8, 2010 at 2:58 PM, Alejandro Gonzalez
 alejandrogonzalezd...@gmail.com wrote:
  ok please don't forget it :)
 
  2010/7/8 Ruben Abad rua...@gmail.com
 
  Jorl, ok tendré que modificar mi petición de vacaciones :(
  Rubén Abad rua...@gmail.com
 
 
  On Thu, Jul 8, 2010 at 2:46 PM, ZAROGKIKAS,GIORGOS 
  g.zarogki...@multirama.gr wrote:
 
   Hi solr users
  
   I need to know how solr manages the connections when we make a
   request(select update commit)
   Is there any connection pooling or an article to learn about it
  connection
   management??
   How can I log in a file the connections solr server
  
   I have setup my solr 1.4 with tomcat
  
   Thanks in advance
  
  
  
  
 
 



 --
 Whether it's science, technology, personal experience, true love,
 astrology, or gut feelings, each of us has confidence in something
 that we will never fully comprehend.
  --Roy H. William



Re: steps to improve search

2010-07-02 Thread Leonardo Menezes
most likely due to:
EnglishPorterFilterFactory
RemoveDuplicatesTokenFilterFactory
StopFilterFactory

you get those fake matches. try going into the admin, on the analysis
section. in there you can simulate the index/search of a document, and see
how its actually searched/indexed. it will give you some clues...

On Fri, Jul 2, 2010 at 1:50 PM, Frederico Azeiteiro 
frederico.azeite...@cision.com wrote:

 For the example given, I need the full expression paying for it, so
 yes all the words.
 -Original Message-
 From: Ahmet Arslan [mailto:iori...@yahoo.com]
 Sent: sexta-feira, 2 de Julho de 2010 12:30
 To: solr-user@lucene.apache.org
 Subject: RE: steps to improve search

  I need to know how to achieve more accurates queries (like
  the example below...) using these filters.

 do you want that all terms - you search - must appear in returned
 documents?

 You can change default operator of QueryParser to AND. either in
 schema.xml or appending q.op=AND you your search url. I am assuming you
 are not using dismax.






Re: Storing RandomSortField

2010-05-19 Thread Leonardo Menezes
Hey,
   for random sorting, random values are generated in runtime using the seed
you passed as one of the parameters to generate the value, among other
things. this way, if the value you use as seed is the same in different
request, the sorting order should be the same. you could also, for debbuing
purposes, edit the random sort field class and put some traces in there, so
it could print the id of the document and the value generated for example.
but the values wont be stored on the idx.

cheers

On Wed, May 19, 2010 at 10:00 AM, Marco Martinez 
mmarti...@paradigmatecnologico.com wrote:

 Hi Alexandre,

 I am not totally sure about this, but the random sort field its only used
 to
 do a random sort on your searchs, and you will to pass differents values to
 have differents sorts, so this only applies in the searchs, so no value is
 indexed. You will find more information here:

 http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html

 Marco Martínez Bautista
 http://www.paradigmatecnologico.com
 Avenida de Europa, 26. Ática 5. 3ª Planta
 28224 Pozuelo de Alarcón
 Tel.: 91 352 59 42


 2010/5/18 Alexandre Rocco alel...@gmail.com

  Hi guys,
 
  Is there any way to mak a RandomSortField be stored?
  I'm trying to do it for debugging purposes,
  My intention is to take a look at the values that are stored there to
  determine the sorting that is being applied to the results.
 
  I tried to make it a stored field as:
  field name=randomorder type=random stored=true /
 
  And also tried to create another text field, copying the result from the
  random field like this:
  field name=randomorderdebug type=text indexed=true stored=true/
  copyField source=randomorder dest=randomorderdebug/
 
  Neither of the approaches worked.
  Is there any restriction on this kind of field that prevents it from
 being
  displayed in the results?
 
  Thanks,
  Alexandre
 



Re: Challenge: Searching for variant products and get basic products in result set

2010-05-19 Thread Leonardo Menezes
would you then need to know in which variant was your match produced?
because if not, you can just index the whole thing as one single document...

On Wed, May 19, 2010 at 4:23 PM, hkmortensen ko...@yahoo.com wrote:


 I do searching for products. Each base product exist in variants as well.
 One
 variant has a glass door, another a steel door etc. The variants can have
 diffent prices. The base product does not really exist, only the variants
 exists IRL. The case corresponds to cars: the car model is the base
 product,
 with color variants  or with automatic/manual etc.

 I want to search for variants, but I only want to have base products in the
 result. Ie when one or more variants from the same base product are found,
 only the base product shall be in the search result.

 Does somebody have an idea how this could be done?

 Best regards

 Henning
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Challenge-Searching-for-variant-products-and-get-basic-products-in-result-set-tp829218p829218.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Challenge: Searching for variant products and get basic products in result set

2010-05-19 Thread Leonardo Menezes
if that is so, and maybe, you have for example, two variants of cars with
automatic, what would define on which one was the hit? or field dont share
common information across variants? if they do share, you wouldnt be able to
define in which one was the hit(because it was on both of them) and would
either have to pick one randomly, or retrieve both. if they dont share that
info, you would have that covered, since only one would match any given
query.

On Wed, May 19, 2010 at 5:04 PM, hkmortensen ko...@yahoo.com wrote:


 thanks. Currently not, but requirements change all the time as always ;-)
 If we get a requirement, that a facet shall be material of doors, we will
 need to know which variant was the hit. I would like to be prepared for
 that.




 Leonardo Menezes wrote:
 
  would you then need to know in which variant was your match produced?
  because if not, you can just index the whole thing as one single
  document...
 
  On Wed, May 19, 2010 at 4:23 PM, hkmortensen ko...@yahoo.com wrote:
 
 
  I do searching for products. Each base product exist in variants as
 well.
  One
  variant has a glass door, another a steel door etc. The variants can
 have
  diffent prices. The base product does not really exist, only the
 variants
  exists IRL. The case corresponds to cars: the car model is the base
  product,
  with color variants  or with automatic/manual etc.
 
  I want to search for variants, but I only want to have base products in
  the
  result. Ie when one or more variants from the same base product are
  found,
  only the base product shall be in the search result.
 
  Does somebody have an idea how this could be done?
 
  Best regards
 
  Henning
  --
  View this message in context:
 
 http://lucene.472066.n3.nabble.com/Challenge-Searching-for-variant-products-and-get-basic-products-in-result-set-tp829218p829218.html
  Sent from the Solr - User mailing list archive at Nabble.com.
 
 
 

 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Challenge-Searching-for-variant-products-and-get-basic-products-in-result-set-tp829218p829319.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Wildcars in Queries

2010-05-17 Thread Leonardo Menezes
Yes, also you can use '?' for a single character wild card.

On Mon, May 17, 2010 at 11:21 AM, Robert Naczinski 
robert.naczin...@googlemail.com wrote:

 Hi,

 i'm new to solr. Can I use wilcard like '*' in my queries?

 Thanx,

 Robert



Re: Wildcars in Queries

2010-05-17 Thread Leonardo Menezes
http://wiki.apache.org/solr/SolrQuerySyntax

On Mon, May 17, 2010 at 11:44 AM, Robert Naczinski 
robert.naczin...@googlemail.com wrote:

 How I can do that? I that distribute example I'cant use wildcards ;-(

 2010/5/17 Leonardo Menezes leonardo.menez...@googlemail.com:
  Yes, also you can use '?' for a single character wild card.
 
  On Mon, May 17, 2010 at 11:21 AM, Robert Naczinski 
  robert.naczin...@googlemail.com wrote:
 
  Hi,
 
  i'm new to solr. Can I use wilcard like '*' in my queries?
 
  Thanx,
 
  Robert
 
 



Re: Facet Queries

2010-05-14 Thread Leonardo Menezes
Hey,
there´s plenty of documentation about that...
http://wiki.apache.org/solr/SimpleFacetParameters#Field_Value_Faceting_Parameters

On Fri, May 14, 2010 at 10:38 AM, Rakhi Khatwani rkhatw...@gmail.comwrote:

 Hi,
whn i use facet queries, whats the default size of the results
 returned? how do we configure if we want all the results shown?

 Regards
 Raakhi