Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
Lance, I didn't use widcard at all. I use only this, the difference is quoted or not. q2=*"apartment"* q1=*apartment* * * On Tue, Jul 3, 2012 at 12:06 PM, Lance Norskog wrote: > &q2=*"apartment"* > q1=*apartment* > > These are wildcards > > On Mon, Jul 2, 2012 at 8:30 PM, Chamnap Chhorn > wrote

Re: How to improve this solr query?

2012-07-02 Thread Lance Norskog
&q2=*"apartment"* q1=*apartment* These are wildcards On Mon, Jul 2, 2012 at 8:30 PM, Chamnap Chhorn wrote: > Hi Lance, > > I didn't use wildcards at all. This is a normal text search only. I need a > string field because it needs to be matched exactly, and the value is > sometimes a multi-word,

Re: DIH - unable to ADD individual new documents

2012-07-02 Thread Gora Mohanty
On 3 July 2012 07:54, Klostermeyer, Michael wrote: > I should add that I am using the full-import command in all cases, and > setting clean=false for the individual adds. What does the data-import page report at the end of the full-import, i.e., how many documents were indexed? Are there any err

Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
Hi Lance, I didn't use wildcards at all. This is a normal text search only. I need a string field because it needs to be matched exactly, and the value is sometimes a multi-word, so quoted it is necessary. By the way, if I do a super plain query, it takes at least 600ms. I'm not sure why. On anot

Re: query filter with OR reduces results

2012-07-02 Thread Jack Krupansky
Purely negative queries are problematic. You need to add a "*:*": (*:* NOT sentence_id:[* TO *]) Meaning all documents except those with values in the sentence_id field. -- Jack Krupansky -Original Message- From: Breese,John Sent: Monday, July 02, 2012 11:19 AM To: solr-user@lucene.a

Re: How to improve this solr query?

2012-07-02 Thread Lance Norskog
Wildcards are slow. Leading wildcards are even more slow. Is there some way to search that data differently? If it is a string, can you change it to a text field and make sure 'apartment' is a separate word? On Mon, Jul 2, 2012 at 10:01 AM, Chamnap Chhorn wrote: > Hi Michael, > > Thanks for quick

RE: DIH - unable to ADD individual new documents

2012-07-02 Thread Klostermeyer, Michael
The URL I am using is http://localhost/solr/dataimport?commit=true&wt=json&clean=false&uniqueID=2028046&command=full%2Dimport&entity=myEntityName uniqueID is the ID of the newly created DB record. This ID gets passed to the stored procedure and returns the expected data when I run the SP direct

How to space between spatial search results? (Declustering)

2012-07-02 Thread mcb
I have a classic spatial search schema in solr with a lat_long field. Is there way to do a bounding-box type search that will pull back results that are uniformly distributed so their isn't the case of 10 pins being on top of each other? Ie, if I have a 100-mile box, not result will return within 5

RE: DIH - unable to ADD individual new documents

2012-07-02 Thread Klostermeyer, Michael
I should add that I am using the full-import command in all cases, and setting clean=false for the individual adds. Mike -Original Message- From: Klostermeyer, Michael [mailto:mklosterme...@riskexchange.com] Sent: Monday, July 02, 2012 5:41 PM To: solr-user@lucene.apache.org Subject: D

Re: Using custom user-defined caches to store user app data while indexing

2012-07-02 Thread Chris Hostetter
: If you implement SolrCoreAware interface in your custom : UpdateRequestProcessorFactory, you could then access your cache via Solr : Core in the inform method, I think. Haven't tried it myself, but it looks : logical to me to start from there. right ... but you really only need to be SolrCoreAw

Re: how do I search the archives for solr-user

2012-07-02 Thread Chris Hostetter
http://lucene.apache.org/solr/discussion.html#mail-archives -Hoss

DIH - unable to ADD individual new documents

2012-07-02 Thread Klostermeyer, Michael
I am not able to ADD individual documents via the DIH, but updating works as expected. The stored procedure that is called within the DIH returns the expected data for the new document, Solr appears to "do its thing", but it never makes it to the Solr server, as evidence that subsequent querie

Re: Trunk error in Tomcat

2012-07-02 Thread Erik Hatcher
Interestingly, I just logged the issue of it not showing the right error in the UI here: As for your specific issue, not sure, but the error should at least also show in the admin view. Erik On Jul 2, 2012, at 18:59 , Briggs Thompson w

Check if input xml file is ok?

2012-07-02 Thread Bruno Mannina
Dear All, I have several input file to index within more than 17 000 docs. Sometimes indexation bugs because there is a mistake in XML structure (like a ]]> inside CDATA field) Is exist a "test.jar" somewhere before running the post.jar? Thanks alot, Bruno

Re: Dismax Question

2012-07-02 Thread Steve Fatula
From: Joel Rosen >To: solr-user@lucene.apache.org; Steve Fatula >Cc: Ahmet Arslan ; Tom Burton-West >Sent: Monday, July 2, 2012 10:31 AM >Subject: Re: Dismax Question > >I and another user recently posted about this exact same issue.  It sounds >like maybe this is a new bug introduced in 3.

Re: Dismax Question

2012-07-02 Thread Steve Fatula
From: Joel Rosen To: solr-user@lucene.apache.org; Steve Fatula >Cc: Ahmet Arslan ; Tom Burton-West >Sent: Monday, July 2, 2012 10:31 AM >Subject: Re: Dismax Question > > >I and another user recently posted about this exact same issue.  It sounds >like maybe this is a new bug introduced in 3

Re: edismax parser ignores mm parameter when tokenizer splits tokens (hypenated words, WDF splitting etc)

2012-07-02 Thread Tom Burton-West
Opened a JIRA issue: https://issues.apache.org/jira/browse/SOLR-3589, which also lists a couple other related mailing list posts. On Thu, Jun 28, 2012 at 12:18 PM, Tom Burton-West wrote: > Hello, > > My previous e-mail with a CJK example has received no replies. I > verified that this proble

Re: How to improve this solr query?

2012-07-02 Thread Chamnap Chhorn
Hi Michael, Thanks for quick response. Based on documentation, "facet.mincount" means that solr will return facet fields that has at least that number. For me, I just want to ensure my facet fields count doesn't have zero value. I try to increase to 10, but it still slows even for the same query.

Re: How to improve this solr query?

2012-07-02 Thread Michael Della Bitta
Hi Chamnap, The first thing that jumped out at me was "facet.mincount=1". Are you sure you need this? Increasing this number should drastically improve speed. Michael Della Bitta Appinions, Inc. -- Where Influence Isn’t a Game. http://www.appinion

query filter with OR reduces results

2012-07-02 Thread Breese,John
I'm trying to figure out why adding an "OR" condition to a query filter would end up restricting results, instead of unioning them? I would expect to get back more results by adding a union to the filter query. Case 1 – 380 Results 380 results are returned with a query of xyz with a query filt

Re: Dismax Question

2012-07-02 Thread Joel Rosen
I and another user recently posted about this exact same issue. It sounds like maybe this is a new bug introduced in 3.6: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201206.mbox/%3CCAMKKMTx_ybPqsbgU5NtQ19t%2B0kWdAHtq-CZTZxfYxdu6rS1u1g%40mail.gmail.com%3E http://mail-archives.apache

Saravanan Chinnadurai/Actionimages is out of the office.

2012-07-02 Thread Saravanan . Chinnadurai
I will be out of the office starting 02/07/2012 and will not return until 16/07/2012. Please email to itsta...@actionimages.com for any urgent issues. Action Images is a division of Reuters Limited and your data will therefore be protected in accordance with the Reuters Group Privacy / Data P

RE: Can't find solr.xml

2012-07-02 Thread Noordeen, Roxy
Try to add below below file, and set to any path you would like to use: /usr/local/tomcat/conf/Catalina/localhost/solr.xml Roxy -Original Message- From: Nabeel Sulieman [mailto:nabeel.sulie...@gmail.com] Sent: Monday, July 02, 2012 4:34 AM To: solr-user@lucene.apache.org Subject:

Re: index writer in searchComponent

2012-07-02 Thread Dmitry Kan
Hi Peyman, It is, at least from your perspective and probably system design. In our case for example, we have slightly different approach, where a user query is formed on a client side and then caught and pre-processed on a "backend" side before being sent over to solr. That "backend" side would b

Fuzzy Search issues using Solr 4.0

2012-07-02 Thread Matteo Diarena
Dear Solr Users, I'm an enthusiastic solr user since version 1.4. I'm now working on a new solr based application heavily using fuzzy searches for string matching. Unfortunately I'm facing a strange problem using fuzzy search and I hope someone can help me to get more information. I indexed s

Re: indexing documents in Apache Solr using php-curl library

2012-07-02 Thread Sascha SZOTT
Hi, perhaps it's better to use a PHP Solr client library. I used https://code.google.com/p/solr-php-client/ in a project of mine and it worked just fine. -Sascha Asif wrote: > I am indexing the file using php curl library. I am stuck here with the code > echo "Stored in: " . "upload/" . $_F

Re: Dismax Question

2012-07-02 Thread Steve Fatula
>From: Ahmet Arslan >To: solr-user@lucene.apache.org; Steve Fatula >Sent: Monday, July 2, 2012 6:22 AM >Subject: Re: Dismax Question > >> So, my question is how do we get Solr search to work with >> AND when it is splitting words? The splitting part is good, >> the bad part is that it is searc

Re: Dismax Question

2012-07-02 Thread Steve Fatula
>From: Vadim Kisselmann >To: solr-user@lucene.apache.org; Steve Fatula >Sent: Monday, July 2, 2012 4:31 AM >Subject: Re: Dismax Question > >in your schema.xml you can set the default query parser operator, in >your case , but it's >deprecated. > > >I do set the default query operator, as shown

Re: solr error, cannot run PhraseQuery

2012-07-02 Thread Ahmet Arslan
> http://172.17.100.16:/solr/collection1/select?q=name:(4U > OR Cabs)^12.8 > category:(4U OR Cabs)^1.6 subcategory:(4U OR Cabs)^0.4 > description:(4U OR > Cabs)^0.1 > > the above query is throwing the the following error > > field "subcategory" was indexed with > Field.omitTermFreqAndPosition

solr error, cannot run PhraseQuery

2012-07-02 Thread jimmon
http://172.17.100.16:/solr/collection1/select?q=name:(4U OR Cabs)^12.8 category:(4U OR Cabs)^1.6 subcategory:(4U OR Cabs)^0.4 description:(4U OR Cabs)^0.1 the above query is throwing the the following error field "subcategory" was indexed with Field.omitTermFreqAndPositions=true; cannot run P

Re: Dismax Question

2012-07-02 Thread Vadim Kisselmann
in your schema.xml you can set the default query parser operator, in your case , but it's deprecated. When you use the edismax, read this:http://drupal.org/node/1559394 . mm-param is here the answer. Best regards Vadim 2012/7/2 Steve Fatula : > Let's say a user types in: > > DualHead2Go > > >

indexing documents in Apache Solr using php-curl library

2012-07-02 Thread Asif
I am indexing the file using php curl library. I am stuck here with the code echo "Stored in: " . "upload/" . $_FILES["file"]["name"]; $result=move_uploaded_file($_FILES["file"]["tmp_name"],"upload/" . $_FILES["file"]["name"]); if ($result == 1) echo "Upload done ."; $options = ge

Re: Dynamic Field Name?

2012-07-02 Thread Bruno Mannina
Le 02/07/2012 13:32, Ahmet Arslan a écrit : --- On Mon, 7/2/12, Bruno Mannina wrote: From: Bruno Mannina Subject: Dynamic Field Name? To: solr-user@lucene.apache.org Date: Monday, July 2, 2012, 1:02 PM Dear All, In my XML files to index I have several abstract fields with different language

Re: Dynamic Field Name?

2012-07-02 Thread Ahmet Arslan
--- On Mon, 7/2/12, Bruno Mannina wrote: > From: Bruno Mannina > Subject: Dynamic Field Name? > To: solr-user@lucene.apache.org > Date: Monday, July 2, 2012, 1:02 PM > Dear All, > > In my XML files to index I have several abstract fields with > different languages. > I.e: ABEN, ABIT, ABFR, AB

Re: Dismax Question

2012-07-02 Thread Ahmet Arslan
> So, my question is how do we get Solr search to work with > AND when it is splitting words? The splitting part is good, > the bad part is that it is searching for any one of those > split words. Setting autoGeneratePhraseQueries="true" and &mm=100% might help you. http://wiki.apache.org/solr/

Re: Atomic Multicore Operations - E.G. Move Docs

2012-07-02 Thread Nicholas Ball
That could work, but then how do you ensure commit is called on the two cores at the exact same time? Also, any way to commit a specific update rather then all the back-logged ones? Cheers, Nicholas On Sat, 30 Jun 2012 16:19:31 -0700, Lance Norskog wrote: > Index all documents to both cores, bu

Dynamic Field Name?

2012-07-02 Thread Bruno Mannina
Dear All, In my XML files to index I have several abstract fields with different languages. I.e: ABEN, ABIT, ABFR, ABPT, etc I would like to: Index & Store only the ABEN and Only Store all other AB* fields Is it possible to write in the schema.xml multivalued="true" /> multivalued="true"

Facet Order when the count is the same

2012-07-02 Thread maurizio1976
Hi, does anybody knows if there is a rule around the ordering of what's returned by a facet if the counts are all the same? Is that ordered by time of indexation of the doc in Solr? cheers Maurizio -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-Order-when-the-count-is-

Re: Prefix query is not analysed?

2012-07-02 Thread Alok Bhandari
Yes I am using Solr 3.6. Thanks for the link it is very useful. >From the link I could make out that if analyzer includes any one of the following then they are applied and any other elements specified under analyzer are not applied as they are not multi-term aware. ASCIIFoldingFilterFactory Lo

Re: Can't find solr.xml

2012-07-02 Thread Nabeel Sulieman
Argh! (and hooray!) I started from scratch again, following the wiki instructions. I did only one thing differently; put my data directory in /opt instead of /home/dev. And now it works! I'm glad it's working now. I just wish I knew exactly what the difference is. The directory in /opt has exactl

Re: Prefix query is not analysed?

2012-07-02 Thread Sascha Szott
Hi, I suppose you are using Solr 3.6. Then take a look at http://www.lucidimagination.com/blog/2011/11/29/whats-with-lowercasing-wildcard-multiterm-queries-in-solr/ -Sascha Alok Bhandari schrieb: Thanks for reply. If I check the debug query through solr-admin I can see that the lower case

Re: Prefix query is not analysed?

2012-07-02 Thread Alok Bhandari
Thanks for reply. If I check the debug query through solr-admin I can see that the lower case filter is applied and "rawquerystring":"em_to_name:Follett'.*", "querystring":"em_to_name:Follett'.*", "parsedquery":"+em_to_name:follett'.*", "parsedquery_toString":"+em_to_name:follett'.

Re: Prefix query is not analysed?

2012-07-02 Thread Sascha Szott
Hi, wildcard and fuzzy queries are not analyzed. -Sascha Alok Bhandari schrieb: Hello , I am pushing "Chuck Follett'.?.?" in solr and when I query for this field with query string field:Follett'.* I am getting 0 results. field type declared is and parser we are using is EdisMax .