Re: Problem with XML encode UFT-8

2011-02-24 Thread Jan Høydahl
Hi, Attachments may not work on the mailing lists. Paste the code into email or provide a link. May it be your Python code not handling UTF-8 strings correctly? Can you paste some relevant lines from the Solr log? If you start solr with Jetty, you can use java -jar start.jar and get the log

Problem in full query searching

2011-02-24 Thread Bagesh Sharma
Hi sir, My problem is that when i am searching a string software engineering institute in query then i am not getting those documents first which have complete text matching in them. There are documents which have complete text matching but they are not appearing above in the result. I want the

Re: UpdateProcessor and copyField

2011-02-24 Thread Jan Høydahl
Hi, I'd also like a more powerful/generic CopyField. Today copyField always copies after UpdateChain and before analysis. Refactoring it as an UP (using SOLR-2370 to include it as part of default chain) would let us specify before UpdateChain in addition. But how could we get it to copy after

Re: disable replication in a persistent way

2011-02-24 Thread Jan Høydahl
I think all of this should be adapted for SolrCloud. ZK should be the one knowing which is master and slave. ZK should know whether replication on a slave is disabled or not. To disable replication it should be enough to set a new value in ZK, and the node will be notified and change behaviour

Re: custom query parameters

2011-02-24 Thread Jan Høydahl
I would probably try the SearchComponent route first, translating input into DisMax speak. But if you have a completely different query language, a QParserPlugin could be the way to go. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 24. feb. 2011, at 06.26,

Re: Problem in full query searching

2011-02-24 Thread Grijesh
Try to configue more waight on ps and pf parameters of dismax request handler to boost phrase matching documents. Or if you do not want to consider the term frequency then use omitTermFreqAndPositions=true in field definition - Thanx: Grijesh http://lucidimagination.com -- View this

Re: problem when search grouping word

2011-02-24 Thread Grijesh
may synanym will help - Thanx: Grijesh http://lucidimagination.com -- View this message in context: http://lucene.472066.n3.nabble.com/problem-when-search-grouping-word-tp2566499p2566548.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: problem when search grouping word

2011-02-24 Thread Grijesh
may synonym will help - Thanx: Grijesh http://lucidimagination.com -- View this message in context: http://lucene.472066.n3.nabble.com/problem-when-search-grouping-word-tp2566499p2566550.html Sent from the Solr - User mailing list archive at Nabble.com.

Make syntax highlighter caseinsensitive

2011-02-24 Thread Tarjei Huse
Hi, I got an index where I have two fields, body and caseInsensitiveBody. Body is indexed and stored while caseInsensitiveBody is just indexed. The idea is that by not storing the caseInsensitiveBody I save some space and gain some performance. So I query against the caseInsensitiveBody and

Re: Special Circumstances for embedded Solr

2011-02-24 Thread Devangini
Can you please show me how an http implementation of solrj querying can be converted to one for embedded solr with the help of an example? -- View this message in context: http://lucene.472066.n3.nabble.com/Special-Circumstances-for-embedded-Solr-tp833409p2566768.html Sent from the Solr - User

Re: embedding solr

2011-02-24 Thread Devangini
How does the SolrParams fill up directly? Shouldn't it be SolrQueryRequest and not SolrParams, if I am not mistaken? -- View this message in context: http://lucene.472066.n3.nabble.com/embedding-solr-tp476484p2566785.html Sent from the Solr - User mailing list archive at Nabble.com.

Filter Query

2011-02-24 Thread Salman Akram
Hi, I know Filter Query is really useful due to caching but I am confused about how it filter results. Lets say I have following criteria Text:: Abc def Date: 24th Feb, 2011 Now abc def might be coming in almost every document but if SOLR first filters based on date it will have to do search

Re: problem when search grouping word

2011-02-24 Thread Chamnap Chhorn
There are many product names. How could I list them all, and the list is growing fast as well? On Thu, Feb 24, 2011 at 5:25 PM, Grijesh pintu.grij...@gmail.com wrote: may synonym will help - Thanx: Grijesh http://lucidimagination.com -- View this message in context:

synonym.txt

2011-02-24 Thread Isha Garg
Hi, I have a doubt regarding query time synonym expansion that whether the changes apply after index creation for synonym.txt will work or not? or it will refer to initial synonym. txt present at index time. Thanks! Isha Garg

Re: Filter Query

2011-02-24 Thread Stefan Matheis
Salman, afaik, the Query is executed first and afterwards FilterQuery steps in Place .. so it's only an additional Filter on your Results. Recommended Wiki-Pages on FilterQuery: * http://wiki.apache.org/solr/CommonQueryParameters#fq * http://wiki.apache.org/solr/FilterQueryGuidance Regards

Re: synonym.txt

2011-02-24 Thread Stefan Matheis
Isha, Solr will use the currently loaded synonyms-file, so no relation to synonyms-file-content which was used while indexing. But to refresh the used synonyms you'll have to restart your java-process (in singlecore mode) or to reload your core-configuration (otherwise) Regards Stefan On Thu,

Question Solr Index main in RAM

2011-02-24 Thread Andrés Ospina
Hi, My name is Felipe and i want to use the index main of solr in RAM memory. How it's possible? I have solr 1.4 Thank you! Felipe

Re: Filter Query

2011-02-24 Thread Salman Akram
Yea I had an idea about that... Now logically speaking main text search should be in the Query filter so there is no way to first filter based on meta data and then do text search on that limited data set? Thanks! On Thu, Feb 24, 2011 at 5:24 PM, Stefan Matheis matheis.ste...@googlemail.com

query slop issue

2011-02-24 Thread Bagesh Sharma
Hi all, i have a search string q=water+treatment+plant and i am using dismax request handler where i have qs = 1 . in which way processing will be done means with in how many words water or treatment or plant should occur to come in result set. -- View this message in context:

Free Webcast/Technical Case Study: How Bazaarvoice moved to Solr to implement Search Strategies for Social and eCommerce

2011-02-24 Thread Grant Ingersoll
I thought you might be interested in a technical webcast on Solr/Lucene and e-commerce/social media that we are sponsoring, featuring RC Johnson of Bazaarvoice. It's Wednesday, March 2, 2011 at 11:00am PST/2:00pm EST/19:00 GMT. RC has been leading efforts at Bazaarvoice to build out their Solr

Re: Special Circumstances for embedded Solr

2011-02-24 Thread Tarjei Huse
On 02/24/2011 12:16 PM, Devangini wrote: Can you please show me how an http implementation of solrj querying can be converted to one for embedded solr with the help of an example? Hi, heres an example that almost compiles. You should be able to get going with this. T class EmbeddedSolrExample {

Re: Question Solr Index main in RAM

2011-02-24 Thread Koji Sekiguchi
(11/02/24 21:38), Andrés Ospina wrote: Hi, My name is Felipe and i want to use the index main of solr in RAM memory. How it's possible? I have solr 1.4 Thank you! Felipe Welcome Felipe! If I understand your question correctly, you can use

Re: Question about Nested Span Near Query

2011-02-24 Thread Ahsan |qbal
Hi To narrow down the issue I indexed a single document with one of the sample queries (given below) which was giving issue. *evaluation of loan and lease portfolios for purposes of assessing the adequacy of * Now when i Perform a search query (*TextContents:evaluation of loan and lease

Re: Question about Nested Span Near Query

2011-02-24 Thread Bill Bell
Send schema and document in XML format and I'll look at it Bill Bell Sent from mobile On Feb 24, 2011, at 7:26 AM, Ahsan |qbal ahsan.iqbal...@gmail.com wrote: Hi To narrow down the issue I indexed a single document with one of the sample queries (given below) which was giving issue.

Re: Question Solr Index main in RAM

2011-02-24 Thread Bill Bell
How to use this? Bill Bell Sent from mobile On Feb 24, 2011, at 7:19 AM, Koji Sekiguchi k...@r.email.ne.jp wrote: (11/02/24 21:38), Andrés Ospina wrote: Hi, My name is Felipe and i want to use the index main of solr in RAM memory. How it's possible? I have solr 1.4 Thank you!

Re: DataImportHandler in Solr 4.0

2011-02-24 Thread Mark
It seems this thread has been hijacked. My initial posting was in regards to my custom Evaluators always receiving a null context. Same Evaluators work in 1.4.1 On 2/23/11 5:47 PM, Alexandre Rocco wrote: I got it working by building the DIH from the contrib folder and made a change on the lib

Order Facet on ranking score

2011-02-24 Thread Jenny Arduini
Hello everybody, Is it possibile to order the facet results on some ranking score? I was doing a query with or operator and sometimes the first facet have inside of them only result with small rank and not important. This cause that users are led to other reasearch not important. // -- Jenny

facet.offset with facet.sort=lex and shards problem?

2011-02-24 Thread Peter Cline
Hi all, I'm having a problem using distributed search in conjunction with the facet.offset parameter and lexical facet value sorting. Is there an incompatibility between these? I'm using Solr 1.41. I have a facet with ~100k values in one index. I'm wanting to page through them

Re: Question about Nested Span Near Query

2011-02-24 Thread Ahsan |qbal
Hi schema and document are attached. On Thu, Feb 24, 2011 at 8:24 PM, Bill Bell billnb...@gmail.com wrote: Send schema and document in XML format and I'll look at it Bill Bell Sent from mobile On Feb 24, 2011, at 7:26 AM, Ahsan |qbal ahsan.iqbal...@gmail.com wrote: Hi To narrow

Re: Filter Query

2011-02-24 Thread Yonik Seeley
On Thu, Feb 24, 2011 at 6:46 AM, Salman Akram salman.ak...@northbaysolutions.net wrote: Hi, I know Filter Query is really useful due to caching but I am confused about how it filter results. Lets say I have following criteria Text:: Abc def Date: 24th Feb, 2011 Now abc def might be

Re: Filter Query

2011-02-24 Thread Salman Akram
So you are agreeing that it does what I want? So in my example Abc def would only be searched on 24th Feb 2010 documents? When you say 'last with filters' does it mean first it filters out with Filter Query and then applies Query on it? On Thu, Feb 24, 2011 at 9:29 PM, Yonik Seeley

Re: Filter Query

2011-02-24 Thread Yonik Seeley
On Thu, Feb 24, 2011 at 11:56 AM, Salman Akram salman.ak...@northbaysolutions.net wrote: So you are agreeing that it does what I want? So in my example Abc def would only be searched on 24th Feb 2010 documents? Pretty much, but not exactly. It's close enough to what you want though. The

Re: Solr 4.0 DIH

2011-02-24 Thread Koji Sekiguchi
(11/02/22 6:58), Mark wrote: I download Solr 4.0 from trunk today and I tried using a custom Evaluator during my full/delta-importing. Within the evaluate method though, the Context is always null? When using this same class with Solr 1.4.1 the context always exists. Is this a bug or is this

Re: facet.offset with facet.sort=lex and shards problem?

2011-02-24 Thread Yonik Seeley
On Thu, Feb 24, 2011 at 10:57 AM, Peter Cline pcl...@pobox.upenn.edu wrote: Hi all, I'm having a problem using distributed search in conjunction with the facet.offset parameter and lexical facet value sorting.  Is there an incompatibility between these?  I'm using Solr 1.41. I have a facet

Re: facet.offset with facet.sort=lex and shards problem?

2011-02-24 Thread Peter Cline
On 02/24/2011 12:37 PM, Yonik Seeley wrote: On Thu, Feb 24, 2011 at 10:57 AM, Peter Clinepcl...@pobox.upenn.edu wrote: Hi all, I'm having a problem using distributed search in conjunction with the facet.offset parameter and lexical facet value sorting. Is there an incompatibility between

Re: facet.offset with facet.sort=lex and shards problem?

2011-02-24 Thread Peter Cline
On 02/24/2011 02:58 PM, Peter Cline wrote: On 02/24/2011 12:37 PM, Yonik Seeley wrote: On Thu, Feb 24, 2011 at 10:57 AM, Peter Clinepcl...@pobox.upenn.edu wrote: Hi all, I'm having a problem using distributed search in conjunction with the facet.offset parameter and lexical facet value

dataimport

2011-02-24 Thread Brian Lamb
Hi all, First of all, I'm quite new to solr. I have the server set up and everything appears to work. I set it up so that the indexed data comes through a mysql connection: requestHandler name=/dataimport class=org.apache.solr.handler.dataimport.DataImportHandler lst name=defaults str

Re: query slop issue

2011-02-24 Thread Jayendra Patil
qs is only the amount of slop on phrase queries explicitly specified in the q for qf fields. So only if the search q is water treatment plant, would the qs come into picture. Slop is the maximum allowable positional distance between terms to be considered a match is called slop. and distance is

Re: Problem in full query searching

2011-02-24 Thread Jayendra Patil
With dismax or extended dismax parser you should be able to achieve this. Dismax :- qf, qs, pf ps should help you to have exact control on the fields and boosts. Extended Dismax :- In addition to qf, qs, pf ps, you have pf2 and pf3 for the two and three words shingles. As Grijesh mentioned,

Re: facet.offset with facet.sort=lex and shards problem?

2011-02-24 Thread Yonik Seeley
On Thu, Feb 24, 2011 at 3:53 PM, Peter Cline pcl...@pobox.upenn.edu wrote: I tried today's builds for the 3.x branch and the trunk.  The problem persists in both. Thanks Peter, I was now also able to duplicated the bug. Could you open a JIRA issue for this? -Yonik http://lucidimagination.com

DIH regex remove email + extract url

2011-02-24 Thread Rosa (Anuncios)
Hi, I'm trying to remove all email address in my content field with following line: field column=description xpath=/product/content regex=[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[A-Z]{2,4} replaceWith= / But it doesn't seem to remove emails? Is the syntax right? Second thing: I would like to

Re: Order Facet on ranking score

2011-02-24 Thread Markus Jelsma
No, Solr returns facets ordered alphabetically or count. Hello everybody, Is it possibile to order the facet results on some ranking score? I was doing a query with or operator and sometimes the first facet have inside of them only result with small rank and not important. This cause that

Re: CUSTOM JSP FOR APACHE SOLR

2011-02-24 Thread Paul Libbrecht
Hello list, as suggested below, I tried to implement a custom ResponseWriter that would evaluate a JSP but that seems impossible: the HttpServletRequest and the HttpServletResponse are not available anymore. Have I missed something? Should I rather do a RequestHandler? Does anyone know an

query results filter

2011-02-24 Thread Babak Farhang
Hi everyone, I have some existing solr cores that for one reason or another have documents that I need to filter from the query results page. I would like to do this inside Solr instead of doing it on the receiving end, in the client. After searching the mailing list archives and Solr wiki, it

RE: query results filter

2011-02-24 Thread Jonathan Rochkind
Hmm, depending on what you are actually needing to do, can you do it with a simple fq param to filter out what you want filtered out, instead of needing to write custom Java as you are suggesting? It would be a lot easier to just use an fq. How would you describe the documents you want to

Re: DataImportHandler in Solr 4.0

2011-02-24 Thread Chris Hostetter
: It seems this thread has been hijacked. My initial posting was in regards to : my custom Evaluators always receiving a null context. Same Evaluators work in : 1.4.1 I'm pretty sure you are talking about a completely different thread, with a completely differnet subject (Solr 4.0 DIH) -Hoss

Re: DIH regex remove email + extract url

2011-02-24 Thread Koji Sekiguchi
Hi Rosa, field column=description xpath=/product/content regex=[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[A-Z]{2,4} replaceWith= / Shouldn't it be regex=[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,4}? field column=source xpath=/product/url regex=http://(.*?)\\/(.*) / Example:

Re: Make syntax highlighter caseinsensitive

2011-02-24 Thread Koji Sekiguchi
(11/02/24 20:18), Tarjei Huse wrote: Hi, I got an index where I have two fields, body and caseInsensitiveBody. Body is indexed and stored while caseInsensitiveBody is just indexed. The idea is that by not storing the caseInsensitiveBody I save some space and gain some performance. So I query

Ramdirectory

2011-02-24 Thread Bill Bell
I could not figure out how to setup the ramdirectory option in solrconfig.XML. Does anyone have an example for 1.4? Bill Bell Sent from mobile

Re: Ramdirectory

2011-02-24 Thread Chris Hostetter
: I could not figure out how to setup the ramdirectory option in solrconfig.XML. Does anyone have an example for 1.4? it wasn't an option in 1.4. as Koji had already mentioned in the other thread where you chimed in and asked about this, it was added in the 3x branch...

boosting based on number of terms matched?

2011-02-24 Thread DarkNovaNick
I'm using the edismax handler, although my question is probably the same for dismax. When the user types a long query, I use the mm parameter so that only 75% of terms need to match. This works fine, however, sometimes documents that only match 75% of the terms show up higher in my results

Re: Ramdirectory

2011-02-24 Thread Bill Bell
Thanks - yeah that is why I asked how to use it. But I still don't know how to use it. https://hudson.apache.org/hudson/job/Solr-3.x/javadoc/org/apache/solr/core/ RAMDirectoryFactory.html https://issues.apache.org/jira/browse/SOLR-465 directoryProvider

Re: query results filter

2011-02-24 Thread Babak Farhang
In my case, I want to filter out duplicate docs so that returned docs are unique w/ respect to a certain field (not the schema's unique field, of course): a duplicate doc here is one that has same value for a checksum field as one of the docs already in the results. It would be great if I could

Re: query slop issue

2011-02-24 Thread Bagesh Sharma
Thanks very good explanation. -- View this message in context: http://lucene.472066.n3.nabble.com/query-slop-issue-tp2567418p2573185.html Sent from the Solr - User mailing list archive at Nabble.com.