Re: How to add TrieIntField to a SolrInputDocument?

2011-07-14 Thread Gabriele Kahlout
this works: doc.remove(wc); SolrInputField wcField = new SolrInputField(wc); wcField.setValue(150, 1.0f); doc.put(wc,wcField); On Wed, Jul 13, 2011 at 4:19 PM, Gabriele Kahlout gabri...@mysimpatico.comwrote: SolrInputDocument doc = new

Is it possible to extract all the tokens from solr?

2011-07-14 Thread Pankaj
Hello Everyone, How to extract all the tokens from solr, not from one document but from all the documents indexed in solr? - Thanks

Re: ' invisible ' words

2011-07-14 Thread Jayendra Patil
Strange .. the only other difference that I see is the different configurations for the word delimiter filter, with the catenatewords and catenatenumbers @ index and query but it should not impact normal word searches. As others suggested, you may just want to use the same chain for both Index

Re: Preserve XML hierarchy

2011-07-14 Thread Lucas Miguez
Hi, yes, I was asking about it, is it possible to index an XML file? Is it possible to know which node of the XML the search result comes from? So I have 2 XML files, the original and the summary. I want to index the summary. So, that is an example of the summary XML: Objetives Activity

Lockfactory indicated by ../solr/admin/cores different from the setting in solrconfig.xml

2011-07-14 Thread nipunb
hey We have set locktype to simple in solrconfig.xml using: lockTypesimple/lockType. However on the page localhost:8983/solr/admin/cores shows: str name=directory org.apache.lucene.store.MMapDirectory:org.apache.lucene.store.MMapDirectory/solr-cores/core0/data/index

Why cannot I open a read-only IndexReader from TestHarness.getIndexDir() ?

2011-07-14 Thread Gabriele Kahlout
IndexReader getReader() throws CorruptIndexException, IOException { return IndexReader.open(FSDirectory.open(new File(h.getCore().getIndexDir())), true); } *org.apache.lucene.index.IndexNotFoundException: no segments* file found in

SolrJ Collapsable Query Fails

2011-07-14 Thread Kurt Sultana
I am currently trying to run a collapsable query using SolrJ using SolR 3.3. The problem is that when I run the query through the web interface, with this url: http://localhost:8080/solr/select/?q=attr_content%3Alynxsort=attr_location+descgroup=truegroup.field=attr_directory I am able to see the

Re: Is it possible to extract all the tokens from solr?

2011-07-14 Thread pravesh
You can use lucene for doing this. It provides TermEnum API to enumerate all terms of field(s). SOLR-1.4.+ also provides a special request handler for this purpose. Check it if that helps Thanx Pravesh -- View this message in context:

Re: ' invisible ' words

2011-07-14 Thread deniz
well i know it is totally weird... i have tried many things , including the ones in this forum, but the result is the same... somehow some words are just invisible... - Zeki ama calismiyor... Calissa yapar... -- View this message in context:

how to do ExactMatch for PhraseQuery

2011-07-14 Thread Mohammad Shariq
I need exact match On PhraseQuery. when I search for the phrase call it spring I get the result for : 1) It's spring 2) The spring but my requirement is ExactMatch for PhraseQuery. my search field is text. Along with PhraseQuery I am doing RegularQuery too. how to tune the solr to do Exactmatch

- character in search query

2011-07-14 Thread roySolr
Hello, I have some problem with characters in the search term. I have some query's like this: Arsenal - london Ajax - amsterdam Arsenal - moskou Arsenal - China When i send arsenal - london to SOLR i get 2 results, China and moskou. I looked in the debugQuery and it looks like solr is searching

Re:- character in search query

2011-07-14 Thread 方振鹏
using '\' to escape. Best Wishes. -- Best wishes James Bond Fang 方 振鹏 Dept. Software Engineering Xiamen University -- Original -- From: roySolr; Date: 2011年7月14日(星期四) 下午5:29 To: solr-user; Subject: - character in

Re: - character in search query

2011-07-14 Thread James Bond Fang
Using '\' to escape. -- View this message in context: http://lucene.472066.n3.nabble.com/character-in-search-query-tp3168604p3168612.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: - character in search query

2011-07-14 Thread roySolr
thanks! I use the escape function of the solr pecl package to escape special characters http://docs.php.net/manual/kr/solrutils.escapequerychars.php -- View this message in context: http://lucene.472066.n3.nabble.com/character-in-search-query-tp3168604p3168638.html Sent from the Solr - User

Re: (Solr-UIMA) Indexing problems with UIMA fields.

2011-07-14 Thread Tommaso Teofili
2011/7/13 Sowmya V.B. vbsow...@gmail.com Hello Tomasso Thanks for the reply. I did added uima chain to /javabin handler as you suggested. Now, I get an internal server error! Here is the stacktrace. request: http://localhost:8080/apache-solr-3.3.0/update/javabin?wt=javabinversion=2

Re: - character in search query

2011-07-14 Thread roySolr
It looks like it's still not working. I send this to SOLR: q=arsenal \- london I get no results. When i look at the debugQuery i see this: (name: arsenal | city:arsenal)~1.0 (name: \ | city:\)~1.0 (name: london | city: london)~1.0 my requesthandler: requestHandler name=dismax

Re: - character in search query

2011-07-14 Thread François Schiettecatte
Easy, the hyphen is out on its own (with spaces on either side) and is probably getting removed from the search by the tokenizer. Check your analysis. François On Jul 14, 2011, at 6:05 AM, roySolr wrote: It looks like it's still not working. I send this to SOLR: q=arsenal \- london I

Re: how to do ExactMatch for PhraseQuery

2011-07-14 Thread Ahmet Arslan
Not sure but, don't you need to use CommonGramsQueryFilterFactory at query time? http://lucene.apache.org/solr/api/org/apache/solr/analysis/CommonGramsQueryFilter.html --- On Thu, 7/14/11, Mohammad Shariq shariqn...@gmail.com wrote: From: Mohammad Shariq shariqn...@gmail.com Subject: how to

Re: SolrJ Collapsable Query Fails

2011-07-14 Thread Ahmet Arslan
See the Yonik's reply : http://search-lucene.com/m/tCmky1v94D92/ In short you need to use NamedListObject getResponse(). I am currently trying to run a collapsable query using SolrJ using SolR 3.3. The problem is that when I run the query through the web interface, with this url:

Re: Preserve XML hierarchy

2011-07-14 Thread Michael Sokolov
Have a look at http://wiki.apache.org/solr/DataImportHandler#XPathEntityProcessor It might be just what you need? -Mike On 7/14/2011 3:31 AM, Lucas Miguez wrote: Hi, yes, I was asking about it, is it possible to index an XML file? Is it possible to know which node of the XML the search

Re: how to do ExactMatch for PhraseQuery

2011-07-14 Thread in.abdul
use* keywordfilter *that will helpfull for your requirement Thanks and Regards, S SYED ABDUL KATHER 9731841519 On Thu, Jul 14, 2011 at 2:57 PM, Mohammad Shariq [via Lucene] ml-node+3168601-303697702-389...@n3.nabble.com wrote: I need exact match On

Re: Readercycle script issue

2011-07-14 Thread Koji Sekiguchi
(11/07/14 13:12), Pawan Darira wrote: Hi my readercycle script is not reloading the searcher. where i may be wrong. please help readercycle is somewhat old or broken and it's been removed at SOLR-2046. I recommend you to use commit script instead:

Stored Field

2011-07-14 Thread lee carroll
Hi Do Stored field values get added to the index for each document field combination literally or is a pointer used ? I've been reading http://lucene.apache.org/java/2_4_0/fileformats.pdf and I think thats the case but not 100% so thought I'd ask. In logical terms for stored fields do we get this

Re: - character in search query

2011-07-14 Thread roySolr
Yes, i had some tokenizer like this: tokenizer class=solr.PatternTokenizerFactory pattern=\s|-|, / Now i removed the - from this tokenizer and the debugQuery looks like this: (name:arsenal | city:arsenal)~1.0 (name:\- | city:\-)~1.0 (name:london | city:london)~1.0 Still i get no results.. --

return distance in geo spatial query

2011-07-14 Thread Zoltan Altfatter
Hi, Would be interested in the status of the development in returning the distance in a spatial query? I would need the distance to be returned but also would need the document score which is related to other criteria. I am using solr 3.1. Zoltan

Re: Multivalued field: get only the str that matches with the query

2011-07-14 Thread Tomás Fernández Löbbe
I once achieve this by using the highlighting feature, I don't know if there is a more direct way of doing it. On Wed, Jul 13, 2011 at 1:51 PM, Lucas Miguez lucas.mig...@gmail.comwrote: Hi all, I have a multivalued field. I need to make a search in the multivalued field and get only the

Problem with Filter Query

2011-07-14 Thread Kissue Kissue
Hi, I am using Solr 3.1 with SolrJ. I have a field called supplierName in my index which i am trying to do filtering on. When i select about 5 suppliers to filter on at the same time and use their supplier name to contruct a filter query i do not get any results but when i filter which each

Re: return distance in geo spatial query

2011-07-14 Thread Yonik Seeley
On Thu, Jul 14, 2011 at 8:42 AM, Zoltan Altfatter altfatt...@gmail.com wrote: Would be interested in the status of the development in returning the distance in a spatial query? This is a feature in trunk (pseudo-fields). For example: fl=id,score,geodist() -Yonik

Re: (Solr-UIMA) Indexing problems with UIMA fields.

2011-07-14 Thread Sowmya V.B.
Hi All I worked without integrating UIMA in to Solr but doing it seperately..and it worked now! I did not use the Solr-UIMA update processor this time. What I did is this: 1) Take the document, extract the static fields i need... and later send it in to the pipeline. 2) Take the output of the

Re: Problem with Filter Query

2011-07-14 Thread Edoardo Tosca
Hi, have you tried with: solrQuery.addFilterQuery(arrayOfSupplierNames) ? other question, is every element of your array composed in this way: supplierName:FIRST supplierName:SECOND etc.. HTH edo On Thu, Jul 14, 2011 at 2:18 PM, Kissue Kissue kissue...@gmail.com wrote: Hi, I am using Solr

Re: Problem with Filter Query

2011-07-14 Thread Kissue Kissue
Thanks for your response. Actually the elements are composed as follows: fq=firstfq=second But using Solr admin query screen i have modified the query to: fq=supplierName:firstfq=supplierName:second i still get the same results. I will try to use

Re: Problem with Filter Query

2011-07-14 Thread Edoardo Tosca
So with fq=supplierName:firstfq=supplierName:second you don't get any results? is this field a multivalue? Mutliple FQs are evaluated as AND so your document must have in supplierName both first and second Edo On Thu, Jul 14, 2011 at 3:00 PM, Kissue Kissue kissue...@gmail.com wrote:

Re: Upgrading solr from 1.4 to latest version

2011-07-14 Thread Edoardo Tosca
I think that at the moment there isn't any Ubuntu package available with solr 3.x My suggestion is to uninstall it (via apt-get) and install solr manually in your /opt or wherever you want After all what you have to do is easily extract the zipped archive. Edo On Wed, Jul 13, 2011 at 1:35 AM,

Re: Problem with Filter Query

2011-07-14 Thread Kissue Kissue
No its not a multivalue field. Yes i can see that it looks like its doing an AND on all the filter values but how can i get it to do an OR? I just want it to return documents that have any of the supplied values as their supplier name. I have also tried:

Re: Problem with Filter Query

2011-07-14 Thread Edoardo Tosca
As far as i know if you add multiple FQs they will be joined always with AND. You can do something like fq={!q.op=OR df=supplierName}first second third ... HTH Edo On Thu, Jul 14, 2011 at 3:50 PM, Kissue Kissue kissue...@gmail.com wrote: No its not a multivalue field. Yes i can see that it

Fwd: Preserve XML hierarchy

2011-07-14 Thread Lucas Miguez
Thanks for your help! DIH XPathEntityProcessor helps me to index the XML Files, but, does it help to me to know from where the node comes? Following the example in my previous post: example: Imagine that the user search the word zona, then I have to show the TitleP, the TextP, the TitlePart,

Re: Problem with Filter Query

2011-07-14 Thread Kissue Kissue
I have tried this but not working too. Thanks for your help. On Thu, Jul 14, 2011 at 3:59 PM, Edoardo Tosca e.to...@sourcesense.comwrote: As far as i know if you add multiple FQs they will be joined always with AND. You can do something like fq={!q.op=OR df=supplierName}first second third

Problem with numFound of grouped

2011-07-14 Thread Dino_BBT
When I used group=true in ver3.4, then I get the numFound includes grouped record, but I don't get the numFound without grouped, what about I do? Thanks. -- View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-numFound-of-grouped-tp3169450p3169450.html Sent from the Solr

Re: Problem with Filter Query

2011-07-14 Thread Kissue Kissue
I have eventually gotten it to work with the following: fq=supplierName:first + supplierName:second + supplierName:third ... Thanks. On Thu, Jul 14, 2011 at 4:14 PM, Kissue Kissue kissue...@gmail.com wrote: I have tried this but not working too. Thanks for your help. On Thu, Jul 14,

Re: XInclude Multiple Elements

2011-07-14 Thread Stephen Duncan Jr
I'm also open to ideas on useful ways to use XInclude while only targeting a single element. I haven't been able to come up with a way that that's useful enough for me, but maybe I'm not thinking about the problem from the proper point of view. For the schema, I could have the types as a single

Re: Upgrading solr from 1.4 to latest version

2011-07-14 Thread rvidela
Thanks Edorado. I will try installing manually. -- View this message in context: http://lucene.472066.n3.nabble.com/Upgrading-solr-from-1-4-to-latest-version-tp3164312p3169768.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Preserve XML hierarchy

2011-07-14 Thread Walter Underwood
This will be much easier on an XML database, because that supports XPath natively. For open source, try eXist. For a commercial XML database, try MarkLogic (much, much faster than eXist). wunder Walter Underwood Lead Engineer, MarkLogic www.marklogic.com On Jul 14, 2011, at 12:31 AM, Lucas

import Data via PHP

2011-07-14 Thread Jörg Agatz
hallo users... i have a Problem.. I have ti indexin Data via PHP.. the Information for data existing... and the Fiels too.. ?php $id = $_POST['id']; $name = $_POST['name']; $url = $_POST['url']; $color = $_POST['color']; $size = $_POST['size']; ect... ? fields id, name, url, color, size are

RE: import Data via PHP

2011-07-14 Thread Brian Gerby
Joerg - In your PHP code, you can create a snippet of XML with your fields and send that to your solr server via a form post. Example of XML Schema here http://wiki.apache.org/solr/UpdateXmlMessages. Date: Thu, 14 Jul 2011 20:48:20 +0200 Subject: import Data via PHP From:

RE: import Data via PHP

2011-07-14 Thread Alexander Golubowitsch
Hi Jörg, what exactly do you mean by it doesn't work? Is there some kind of error message? In any case you will at least want to url_encode() the data you add into that Curl url. Generally: - You can import data e.g. via a CSV file - You can use the Solr PHP PECL extension (which offers a few

Lazy loading of Cores

2011-07-14 Thread Anirudha Jadhav
Is this implemented ? I was just seeing the doc-wiki , was not sure if it was up-to-date. Are there any specific resources for someone new to start working, contributin Solr code viz. current architecture, steps to compile and get it to build from source. thanks a lot -- Anirudha

Solr Request Logging

2011-07-14 Thread Ben Roubicek
I am using the trunk version of solr and I am getting a ton more logging information than I really care to see and definitely more than 1.4, but I cant really see a way to change it. A little background: I am faceting on fields that have a very high number of distinct values and also returning

How to use solr.PatternReplaceFilterFactory with ampersand in pattern

2011-07-14 Thread M Singh
Hi: I am using the solr.PatternReplaceFilterFactory with pattern as follows to escape ampersand and $ signs: filter class=solr.PatternReplaceFilterFactory pattern=() replacement= / I am getting error due to embedded ampersand [Fatal Error] schema.xml:82:71: The entity name

Re: How to use solr.PatternReplaceFilterFactory with ampersand in pattern

2011-07-14 Thread Markus Jelsma
You're in XML so you must escape it properly with amp; etc. Hi: I am using the solr.PatternReplaceFilterFactory with pattern as follows to escape ampersand and $ signs: filter class=solr.PatternReplaceFilterFactory pattern=() replacement= / I am getting error due to

Re: Lazy loading of Cores

2011-07-14 Thread Shalin Shekhar Mangar
On Fri, Jul 15, 2011 at 12:33 AM, Anirudha Jadhav aniru...@nyu.edu wrote: Is this implemented ? I was just seeing the doc-wiki , was not sure if it was up-to-date. No, this is not implemented yet. You may want to see: http://wiki.apache.org/solr/LotsOfCores

Re: Why cannot I open a read-only IndexReader from TestHarness.getIndexDir() ?

2011-07-14 Thread Shalin Shekhar Mangar
On Thu, Jul 14, 2011 at 1:56 PM, Gabriele Kahlout gabri...@mysimpatico.comwrote: IndexReader getReader() throws CorruptIndexException, IOException { return IndexReader.open(FSDirectory.open(new File(h.getCore().getIndexDir())), true); }

Re: SolrCloud Shardding

2011-07-14 Thread Shalin Shekhar Mangar
On Thu, Jul 14, 2011 at 12:29 AM, Jamie Johnson jej2...@gmail.com wrote: Reading the SolrCloud wiki I see that there are goals to support different shardding algorithms, what is currently implemented today? Is the shardding logic the responsibility of the application doing the index?

Re: deletedPkQuery fails

2011-07-14 Thread Shalin Shekhar Mangar
On Thu, Jul 14, 2011 at 1:39 AM, Elaine Li elaine.bing...@gmail.com wrote: Hi Folks, I am trying to use the deletedPkQuery to enable deltaImport to remove the inactive products from solr. I am keeping getting the syntax error saying the query syntax is not right. I have tried many

Re: Why cannot I open a read-only IndexReader from TestHarness.getIndexDir() ?

2011-07-14 Thread Gabriele Kahlout
i don't know about the path, TestHarness chose it (seems like a temporary directory). Does this work for you? assertU(adoc(id, 0, url, getURL(docUID), content, blah blah blah); assertU(commit()); assertNumFound(1); //this is a helper method of mine

Re: omitTermFreq only?

2011-07-14 Thread Chris Hostetter
: Sorry I should have made the objectives clear. The goal is to reduce the : index size by avoiding TermFrequency stored in the index (in .frq : segment files). Hmmm... why? you're talking about eliminating a single (compressed) int per term, and yet you want positions which take up a lot

Re: about standardAnaylzer in solr

2011-07-14 Thread Chris Hostetter
: I using solr 3.3 which in schema.xml contain this : ... : however, when I try on /analysis.jsp, it show difference result compare to : using Lucene. ... : so my question is, how to make it analysis like in Lucene ? To be certain of the differences, you need to be more explicit

Re: Why cannot I open a read-only IndexReader from TestHarness.getIndexDir() ?

2011-07-14 Thread Chris Hostetter
: return IndexReader.open(FSDirectory.open(new : File(h.getCore().getIndexDir())), true); : } : : *org.apache.lucene.index.IndexNotFoundException: no segments* file found in I haven't dug into it, but i seem to recall that there were some changes a while back to the TestHarness and

Re: Lockfactory indicated by ../solr/admin/cores different from the setting in solrconfig.xml

2011-07-14 Thread Chris Hostetter
: We have set locktype to simple in solrconfig.xml using: : lockTypesimple/lockType. However on the page : localhost:8983/solr/admin/cores shows: : str name=directory : org.apache.lucene.store.MMapDirectory:org.apache.lucene.store.MMapDirectory/solr-cores/core0/data/index :

Re: deletedPkQuery fails

2011-07-14 Thread Elaine Li
I tried putting single quote like following, it does not work. deletedPkQuery=select p.pId as id from products p join products_large pl on p.pId=pl.pId where p.pId= '${dataimporter.delta.id}' and pl.deleted='' having count(*)=0 I don't have quotes in where p.pId =${dataimporter.delta.id} for my

Re: How to create a solr core if no solr cores were created before?

2011-07-14 Thread Chris Hostetter
you need to give us some more info in order to give you meaningful assistance.. 1) what does your solr.xml look like? 2) what files/directories are in pathToSolrHome? 3) what is the full stack trace? : Hi, : : I tried to create a solr core but I always get No such solr core:-Exception. : :