Re: How to reserve ids?

2011-09-27 Thread Gabriele Kahlout
s that have " > msn.com" token stored in them, even though "msn.com" is a stopword. > > Otis > > P.S. > No need to CC me, I'm on the list. > > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > Lucene ecosystem search :: http:

Re: How to reserve ids?

2011-09-26 Thread Gabriele Kahlout
I'm interested in the stopwords solution as it sounds like less work but i'm not sure i understand how it works. By having msn.com as a stopword it doesnt mean i wont get msn.com as a result for say 'hotmail'. My understanding is that msn.com will never make it to the similarity function and thu

How to reserve ids?

2011-09-26 Thread Gabriele Kahlout
Hello, While indexing there are certain urls/ids I'd never want to appear in the search results (so be indexed). Is there already a 'supported by design' mechanism to do that to point me too, or should I just create this blacklist as an processor in the update chain? -- Regards, K. Gabriele ---

Re: How to make the url id case insensitive?

2011-09-05 Thread Gabriele Kahlout
On Mon, Sep 5, 2011 at 1:22 PM, Markus Jelsma wrote: > Hi, > > URI paths are case-sensitive. If you really want to treat all URL's as > case- > insensitive i would suggest to modifiy the basic URL normalizer to > lowercase > all URL's so that it also ends up lowercased in the CrawlDB. > > What is

How to make the url id case insensitive?

2011-09-04 Thread Gabriele Kahlout
Hi, I've just noticed that two search results of indexed data have the same url: http://www.atory.com/dupe_checker_pro/ http://www.atory.com/dupe_checker_PRO/ I thought the url/id was case-insentively unique. Is there how I can set it up to be so? For Solr it makes sense not to make it the defau

Re: How to get all the terms in a document as Luke does?

2011-08-30 Thread Gabriele Kahlout
til@gmail.com> wrote: > you might want to check - http://wiki.apache.org/solr/TermVectorComponent > Should provide you with the term vectors with a lot of additional info. > > Regards, > Jayendra > > On Tue, Aug 30, 2011 at 3:34 AM, Gabriele Kahlout > wrote: > > He

How to get all the terms in a document as Luke does?

2011-08-29 Thread Gabriele Kahlout
l 6, 2011 at 11:09 AM, Gabriele Kahlout wrote: > From you patch I see TermFreqVector which provides the information I > want. > > I also found FieldInvertState.getLength() which seems to be exactly what I > want. I'm after the word count (sum of tf for every term

Re: Why are not query keywords treated as a set?

2011-08-20 Thread Gabriele Kahlout
on the same position, as the wiki explains. > > Gabrielle, why would you expect that? You input two tokens so you query for > two tokens, why would it be a `set` ? > > > this might help in your analysis chain > > > > > http://wiki.apache.org/solr/AnalyzersTokenizer

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

2011-07-14 Thread Gabriele Kahlout
per method of mine IndexReader.open(FSDirectory.open(new File(h.getCore().getIndexDir())), true); //for me it fails here. But since the document was added I suspect this is a bug On Thu, Jul 14, 2011 at 10:48 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Thu, Jul 1

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 org.apache.lucene.store.NIOFSDirectory@/private/var/f

Re: How to add TrieIntField to a SolrInputDocument?

2011-07-13 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 wrote: > SolrInputDoc

How to add TrieIntField to a SolrInputDocument?

2011-07-13 Thread Gabriele Kahlout
in schema.xml* assertU(adoc(doc)); assertU(commit()); assertNumFound(1); The above test fails until I change the following in schema.xml: - + On Sun, Jul 10, 2011 at 10:36 PM, Gabriele Kahlout wrote: > > This was my problem: > > > I had taken my queu

Re: Can I still search documents once updated?

2011-07-13 Thread Gabriele Kahlout
On Wed, Jul 13, 2011 at 3:54 PM, Michael Kuhlmann wrote: > Am 13.07.2011 15:37, schrieb Gabriele Kahlout: > > Well, I'm !sure how usual this scenario would be: > > 1. In general those using solr with nutch don't store the content field > to > > avoid storing the

Re: Can I still search documents once updated?

2011-07-13 Thread Gabriele Kahlout
te a field unrelated to content (number of inbound links for an example) they would have to re-crawl the page again. This is at least !intuitive. On Wed, Jul 13, 2011 at 2:40 PM, Michael Kuhlmann wrote: > Am 13.07.2011 14:05, schrieb Gabriele Kahlout: > > this is what i was expecting. O

Re: Can I still search documents once updated?

2011-07-13 Thread Gabriele Kahlout
document AND deleting/updating all its unstored but indexed fields). > > If the field is stored, then there's another problem, you might > want to dump the document after reading it from the IR. > > Best > Erick > > On Wed, Jul 13, 2011 at 2:25 AM, Gabriele Kahlout >

Re: Can I still search documents once updated?

2011-07-12 Thread Gabriele Kahlout
be fetched from the index. Verify that the doc you retrieve from the index > has values for "content", I bet it doesn't > > Best > Erick > > On Tue, Jul 12, 2011 at 9:38 AM, Gabriele Kahlout > wrote: > > @Test > >public void testUpdateLoseTerms

How to get doc # to use in reader.norms("content")[doc]?

2011-07-12 Thread Gabriele Kahlout
Hello, I'm trying to get the norm of an indexed document for a given field but beside reader.norms(fieldName) I'm not finding any API to retrieve it. Now reader.norms(..) returns an array with the norms for that field of all indexed documents. How do I know the index of my document in there? TermQ

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

2011-07-12 Thread Gabriele Kahlout
Do I have to create a "root" core to create other cores? > How can I create a "root" core? Manually adding in the solr.xml config? > Should all be answered here See http://wiki.apache.org/solr/SolrTomcat for multiple cores use solr.xml: > > 2011/7/1

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

2011-07-11 Thread Gabriele Kahlout
have a look here [1]. [1] https://issues.apache.org/jira/browse/SOLR-2645?focusedCommentId=13062748&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13062748 On Mon, Jul 11, 2011 at 4:46 PM, Mark Schoy wrote: > Hi, > > I tried to create a solr core but I always get

How do I specify a different analyzer at search-time?

2011-07-11 Thread Gabriele Kahlout
With a lucene QueryParser instance it's possible to set the analyzer in use. I suspect Solr doesn't use the same analyzer it used at indexing, defined in schema.xml but I cannot verify that without the queryparser instance. >From Jan's diagram it seems this is set in the SearchHandler's init. Is it

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-10 Thread Gabriele Kahlout
'd recommend starting with the example data and filter for > something like popularity:[6 TO 10] to convince yourself it works, > then figuring out what you did differently in your schema/data. > > -Yonik > http://www.lucidimagination.com > > On Sat, Jul 9, 2011 at 10:50 AM, G

Re: Can I write to the index from within RequestHandler.handleRequestBody(..)?

2011-07-10 Thread Gabriele Kahlout
On Sun, Jul 10, 2011 at 6:21 PM, Koji Sekiguchi wrote: > There are such RequestHandlers. Look at CSVRequestHandler, for example. > > IndexWriter writer = new IndexWriter(FSDirectory.open(**new >> File(req.getCore().getDataDir(**), "index")), >> req.getSchema().getAnalyzer(), >> Ind

Can I write to the index from within RequestHandler.handleRequestBody(..)?

2011-07-10 Thread Gabriele Kahlout
Hello, IndexWriter writer = new IndexWriter(FSDirectory.open(new File(req.getCore().getDataDir(), "index")), req.getSchema().getAnalyzer(), IndexWriter.MaxFieldLength.LIMITED); updateSolrIndex(writer); But this is what I get (I know that RequestHandler are not intended to

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
http://localhost:8080/solr/select?indent=on&version=2.2&q=*%3A** &fq=wc%3A%5B255+TO+257%5D* &start=0&rows=10&fl=*%2Cscore&qt=&wt=xml&explainOther=&hl.fl= The toString of the request: {explainOther=&fl=*,score&indent=on&start=0&q=*:*&hl.fl=&qt=&wt=xml&fq=wc:[255+TO+257]&rows=1&version=2.2} Eve

Re: What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
I don't get it to work! If I specify no fq I get the first result with 256 With wc:[255 TO 257] (fq=wc%3A%5B255+TO+257%5D) nothing comes out. On Sat, Jul 9, 2011 at 12:29 PM, Markus Jelsma wrote: > Hu? It's describe in the link Ahmet's given you. > > > I'm trying to filter a query by the value

What's the fq= syntax for NumericRangeFilter?

2011-07-09 Thread Gabriele Kahlout
I'm trying to filter a query by the value of a numeric field. I can do it in Java as follows, but I don't know how to do it with the query syntax, and I found no documentation of it. @Test public void testFqWc() throws Exception { IndexSearcher searcher = wc(); *Filter wc3 = Nu

Can I delete the stored value?

2011-07-09 Thread Gabriele Kahlout
I've stored the contents of some pages I no longer need. How can I now delete the stored content without re-crawling the pages (i.e. using updateDocument ). I cannot just remove the field, since I still want the field to be indexed, I just don't want to store something with it. My understanding is

Re: How do I add a custom field?

2011-07-07 Thread Gabriele Kahlout
reindex the documents as well - there's no single-field > update capability in Lucene (yet?). > > -Mike > > On 7/3/2011 1:09 PM, Gabriele Kahlout wrote: >> Is there how I can compute and add the field to all indexed documents >> without re-indexing? MyField counts the num

Re: Can I invert the inverted index?

2011-07-06 Thread Gabriele Kahlout
. One of these days > I'll > remove the JSP dependency and this may eventually making it into trunk. > > Thanks, > > -Trey Grainger > Search Technology Development Team Lead, Careerbuilder.com > Site Architect, Celiaccess.com > > > On Tue, Jul 5, 2011 at 3:59 PM,

Re: Can I invert the inverted index?

2011-07-05 Thread Gabriele Kahlout
I had looked an term vectors but don't understand them to solve my problem. Consider the following index entries: >From the 2nd entry we know that t1 is only present in doc0. Now, my problem, given doc0 how can I know which terms occur in in (t0 and t1) (without storing the content)? One way is

Can I invert the inverted index?

2011-07-05 Thread Gabriele Kahlout
Hello, With an inverted index the term is the key, and the documents are the values. Is it still however possible that given a document id I get the terms indexed for that document? -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee ack

Re: Cannot I search documents added by IndexWriter after commit?

2011-07-05 Thread Gabriele Kahlout
docs.totalHits); } On Tue, Jul 5, 2011 at 8:23 PM, Gabriele Kahlout wrote: > Still won't work (same as before). > > > @Test > public void testUpdate() throws IOException, > ParserConfigurationException, SAXException, ParseException { > Analyzer analyzer = getAnaly

Re: Cannot I search documents added by IndexWriter after commit?

2011-07-05 Thread Gabriele Kahlout
e reopened reader. > > Mike McCandless > > http://blog.mikemccandless.com > > On Tue, Jul 5, 2011 at 2:12 PM, Gabriele Kahlout > wrote: > > and how do you do that? There is no reopen method > > > > On Tue, Jul 5, 2011 at 8:09 PM, Michael McCandless < > &

Re: Cannot I search documents added by IndexWriter after commit?

2011-07-05 Thread Gabriele Kahlout
ss.com > > On Tue, Jul 5, 2011 at 1:48 PM, Gabriele Kahlout > wrote: > >@Test > >public void testUpdate() throws IOException, > > ParserConfigurationException, SAXException, ParseException { > >Analyzer analyzer = getAnalyzer(); > >

Cannot I search documents added by IndexWriter after commit?

2011-07-05 Thread Gabriele Kahlout
@Test public void testUpdate() throws IOException, ParserConfigurationException, SAXException, ParseException { Analyzer analyzer = getAnalyzer(); QueryParser parser = new QueryParser(Version.LUCENE_32, content, analyzer); Query allQ = parser.parse("*:*"); I

Re: Does Nutch make any use of solr.WhitespaceTokenizerFactory defined in schema.xml?

2011-07-05 Thread Gabriele Kahlout
the answer to 2) is new IndexSchema(solrConf, schema).getAnalyzer(); On Tue, Jul 5, 2011 at 2:48 PM, Gabriele Kahlout wrote: > Not yet an answer to 2) but this is where and how Solr initializes the > Analyzer defined in the schema.xml into : > > //org.apache.solr.schema.IndexSchem

Re: Does Nutch make any use of solr.WhitespaceTokenizerFactory defined in schema.xml?

2011-07-05 Thread Gabriele Kahlout
filters.toArray(new TokenFilterFactory[filters.size()])); }; On Tue, Jul 5, 2011 at 2:26 PM, Gabriele Kahlout wrote: > I suspect the following should do (1). I'm just not sure about file > references as in stopInit.put("words", "stopwords.txt") . (2) s

Re: Does Nutch make any use of solr.WhitespaceTokenizerFactory defined in schema.xml?

2011-07-05 Thread Gabriele Kahlout
t;); EnglishPorterFilterFactory englishPorterFilterFactory = new EnglishPorterFilterFactory(); englishPorterFilterFactory.init(porterInit); return new RemoveDuplicatesTokenFilter(englishPorterFilterFactory.create(new LowerCaseFilter(wordDelimiterFilterFactory.creat

Re: Does Nutch make any use of solr.WhitespaceTokenizerFactory defined in schema.xml?

2011-07-05 Thread Gabriele Kahlout
kus Jelsma wrote: > No. SolrJ only builds input docs from NutchDocument objects. Solr will do > analysis. The integration is analogous to XML post of Solr documents. > > On Tuesday 05 July 2011 12:28:21 Gabriele Kahlout wrote: > > Hello, > > > > I'm trying to und

Re: How do I compute and store a field?

2011-07-04 Thread Gabriele Kahlout
Gee, I was about to post. I figured my issue is that of computing the unique terms per document. One approach to compute that value is running the analyzer on the document before before calling addDocument, and count the number of tokens. Then I can invoke addDocument with the value of the field co

How do I compute and store a field?

2011-07-03 Thread Gabriele Kahlout
Hello, I'm trying to add a field that counts the number of terms in a document to my schema. So far I've been computing this value at query-time. Is there how I could compute this once only and store the field? final SolrIndexSearcher searcher = request.getSearcher(); final SolrIndexReade

Re: How do I add a custom field?

2011-07-03 Thread Gabriele Kahlout
results will just bring back docs and what fields they have. They won't > bring back "null" fields just because they are in your schema. Lucene > is schema-less. > Solr adds the schema to make it nice to administer and very powerful to > use. > > > > > >

How do I add a custom field?

2011-07-03 Thread Gabriele Kahlout
Hello, I want to have an additional field that appears for every document in search results. I understand that I should do this by adding the field to the schema.xml, so I add: Then I restart Solr (so that I loads the new schema.xml) and make a query specifying that it should return myField

Re: Why are not query keywords treated as a set?

2011-06-19 Thread Gabriele Kahlout
; > On 18 June 2011 13:02, Gabriele Kahlout wrote: > > q=past past > > > > 1.0 = (MATCH) sum of: > > * 0.5 = (MATCH) fieldWeight(content:past in 0), product of:* > > 1.0 = tf(termFreq(content:past)=1) > > 1.0 = idf(docFreq=1, maxDocs=2) > > 0.5 =

"site:" feature in Solr?

2011-06-19 Thread Gabriele Kahlout
Hello, Beside creating an index with just the site in question, is it possible like with Google to search for results only in a given domain? -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours th

Is it true that I cannot delete stored content from the index?

2011-06-18 Thread Gabriele Kahlout
Hello, I've indexing with the content field stored. Now I'd like to delete all stored content, is there how to do that without re-indexing? It seems not from lucene FAQ : How

Re: Why does paste get parsed into past?

2011-06-18 Thread Gabriele Kahlout
11/6/18 François Schiettecatte > What do you have set up for stemming? > > François > > On Jun 18, 2011, at 8:00 AM, Gabriele Kahlout wrote: > > > Hello, > > > > Debugging query results I find that: > > paste > > content:past > > > > Now paste and

Why are not query keywords treated as a set?

2011-06-18 Thread Gabriele Kahlout
q=past past 1.0 = (MATCH) sum of: * 0.5 = (MATCH) fieldWeight(content:past in 0), product of:* 1.0 = tf(termFreq(content:past)=1) 1.0 = idf(docFreq=1, maxDocs=2) 0.5 = fieldNorm(field=content, doc=0) * 0.5 = (MATCH) fieldWeight(content:past in 0), product of:* 1.0 = tf(termFreq(conte

Why does paste get parsed into past?

2011-06-18 Thread Gabriele Kahlout
Hello, Debugging query results I find that: paste content:past Now paste and past are two different words. Why does Solr not consider that? How do I make it? -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt

Re: It's not possible to decide at run-time which similarity class to use, right?

2011-06-16 Thread Gabriele Kahlout
thandler could take a parameter to 'safely' set the run-time similarity? I think many would welcome such responsibility distinction. >Erik > > > > > On Jun 16, 2011, at 14:55 , Gabriele Kahlout wrote: > > > Hello, > > > > I'm testi

It's not possible to decide at run-time which similarity class to use, right?

2011-06-16 Thread Gabriele Kahlout
Hello, I'm testing out different Similarity implementations, and to do that I restart Solr each time I want to try a different similarity class I change the class attributed of the similiary element in schema.xml. Beside running multiple-cores, each with its own schema, is there a way to tell the

Re: How do I make sure the resulting documents contain the query terms?

2011-06-07 Thread Gabriele Kahlout
e documents that actually include the > term. Boosting/relevancy ranking only effects what order these documents > appear in, but there's no reason documentC should be in the result set at > all in your case of q=k1, where docC is not indexed under k1. > > > On 6/7/2011 2:35 AM,

Re: How do I make sure the resulting documents contain the query terms?

2011-06-07 Thread Gabriele Kahlout
On Tue, Jun 7, 2011 at 8:43 AM, pravesh wrote: > >k0 --> A | C > >k1 --> A | B > >k2 --> A | B | C > >k3 --> B | C > >Now let q=k1, how do I make sure C doesn't appear as a result since it > doesn't contain any occurence of k1? > Do we bother to do that. Now that's what lucene does :) > > Lucene/

Re: How do I make sure the resulting documents contain the query terms?

2011-06-06 Thread Gabriele Kahlout
n > you provide some examples? This *looks* like filter queries, > but I think you already know about those... > > Best > Erick > > On Mon, Jun 6, 2011 at 4:00 PM, Gabriele Kahlout > wrote: > > Hello, > > > > I've seen that through boosting it's pos

How do I make sure the resulting documents contain the query terms?

2011-06-06 Thread Gabriele Kahlout
Hello, I've seen that through boosting it's possible to influence the scoring function, but what I would like is sort of a boolean property. In some way it's to search only the indexed documents by that keyword (or the intersection/union) rather than the whole set. Is this supported in any way?

Re: How to know how many documents are indexed? Anything more elegant than parsing numFound?

2011-06-04 Thread Gabriele Kahlout
sorry, this was my bad.. should have used > and ! >> (append) On Fri, Jun 3, 2011 at 9:45 PM, Gabriele Kahlout wrote: > $ curl --fail "http://192.168.34.51:8080/solr/admin/stats.jsp"; >> resp.xml > $ xmlstarlet sel -t -v "//@numDocs" resp.xml > *Extra

Re: How to know how many documents are indexed? Anything more elegant than parsing numFound?

2011-06-03 Thread Gabriele Kahlout
$ curl --fail "http://192.168.34.51:8080/solr/admin/stats.jsp"; >> resp.xml $ xmlstarlet sel -t -v "//@numDocs" resp.xml *Extra content at the end of the document* On Fri, Jun 3, 2011 at 8:56 PM, Ahmet Arslan wrote: > : How to know how many documents are indexed? Anything more elegant than > : p

How to know how many documents are indexed? Anything more elegant than parsing numFound?

2011-06-03 Thread Gabriele Kahlout
$ curl "http://192.168.34.51:8080/solr/select?q=*%3A*&rows=0"; >> resp.xml $ xmlstarlet sel -t -v "//@numFound" resp.xml -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the

What's the need for a complicated SolrTestCaseJ4.getClassName() ?

2011-05-23 Thread Gabriele Kahlout
Hello, As long as I subclass SolrTestCaseJ4 I cannot do this.getClass().getSimpleName(), I don't understand why. I wonder if the following complicated methods in SolrTestCaseJ4 have anything to do with it? protected static String getClassName() { StackTraceElement[] stack = new RuntimeExce

Re: (How) can I use SolrTestCaseJ4.assertQ(..) to test an existing index?

2011-05-21 Thread Gabriele Kahlout
On Sat, May 21, 2011 at 3:29 PM, Gabriele Kahlout wrote: > Hello, > > Examining Solr Core example it seems that a new index is created in a temp > dataDir deleted after each test (Good practice - agreed). > errr..from a test to the other only dataDir is rm but not the in-memor

(How) can I use SolrTestCaseJ4.assertQ(..) to test an existing index?

2011-05-21 Thread Gabriele Kahlout
Hello, Examining Solr Core example it seems that a new index is created in a temp dataDir deleted after each test (Good practice - agreed). But before I start debugging adoc(..) I'm wondering if I can query the same index which I see to work through Solr Web Server interface. Also for large indece

Re: Does every Solr request-response require a running server?

2011-05-18 Thread Gabriele Kahlout
On Wed, May 18, 2011 at 5:09 PM, Yonik Seeley wrote: > On Wed, May 18, 2011 at 10:50 AM, Gabriele Kahlout > wrote: > > Hello, > > > > I'm wondering if Solr Test framework at the end of the day always runs an > > embedded/jetty server (which is the only w

Does every Solr request-response require a running server?

2011-05-18 Thread Gabriele Kahlout
Hello, I'm wondering if Solr Test framework at the end of the day always runs an embedded/jetty server (which is the only way to interact with solr, i.e. no web server --> no solr) or in the tests they interact without one, calling directly the under line methods? The latter seems to be the case

Re: How to list/see all the indexed terms of a particular field in a document?

2011-05-18 Thread Gabriele Kahlout
ant luke? On Wed, May 18, 2011 at 11:47 AM, Gnanakumar wrote: > Hi, > > I'm using Apache Solr v3.1. > > How do I list/get to see all the indexed terms of a particular field in a > document (by passing Unique Key ID of the document)? > > For example, I've the following "field" definition in schem

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-18 Thread Gabriele Kahlout
o create yet one more module for Tests which depend on Solr Core and on the Test Framework. The org burden of that extra module, versus the ease of building configuration, I believe, outweights. On Tue, May 17, 2011 at 7:11 PM, Gabriele Kahlout wrote: > > http://stackoverflow.com/questions

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
http://stackoverflow.com/questions/6034513/can-i-avoid-a-dependency-cycle-with-one-edge-being-a-test-dependency On Tue, May 17, 2011 at 6:49 PM, Gabriele Kahlout wrote: > > > > On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout < > gabri...@mysimpatico.com> wrote: > >&

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:52 PM, Gabriele Kahlout wrote: > > > On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > >> Hi Gabriele, >> >> On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: >> > Solr Core should declare a test dependency on Solr Test Fram

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:44 PM, Steven A Rowe wrote: > Hi Gabriele, > > On 5/17/2011 at 9:34 AM, Gabriele Kahlout wrote: > > Solr Core should declare a test dependency on Solr Test Framework. > > I agree: > > - Solr Core should have a test-scope dependency on Solr Te

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
On Tue, May 17, 2011 at 3:24 PM, Gabriele Kahlout wrote: > thank you. I'd like to stick to the same version (i.e. 3.2-SNAPSHOT). It > seems things have changed there. > > To reproduce (should we file this and add my test as a test to avoid this > bumping up again?) >

Re: How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
thank you. I'd like to stick to the same version (i.e. 3.2-SNAPSHOT). It seems things have changed there. To reproduce (should we file this and add my test as a test to avoid this bumping up again?) $ svn co -r 1104120 http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/ solr cd solr; a

How to test Solr Integartion - how to get EmbeddedSolrServer?

2011-05-17 Thread Gabriele Kahlout
Hello, I'm starting to write tests of my Solr integration, and have unfortunately spent a lot of time chasing updated documentation. Follows a test I found herewhich uses anEmbeddedSolrServerto communicate with the server and r

How to get the filtered terms from a Query in the ResponseWriter?

2011-05-15 Thread Gabriele Kahlout
Hello, For a given q string I'm trying to extract the terms (identifiers of tokens) that the Query Parser identified at terms (and shows when explaining results). I manage to do it as follows, but *I hope there a better way (more direct) you will tell me about:* NamedList analysis = new *FieldAn

Re: How do i I modify XMLWriter to write foobar?

2011-05-14 Thread Gabriele Kahlout
Got this sorted checking out the branch revision. On Thu, May 5, 2011 at 9:44 PM, Gabriele Kahlout wrote: > I've now tried to write my own QueryResponseWriter plugin[1], as a maven > project depending on Solr Core 3.1, which is the same version of Solr I've > installed. It se

Re: How to plugin the value of a Field? DocInverterPerField?

2011-05-14 Thread Gabriele Kahlout
resent the value is computed and added. As acknowledged by others before me, there's room for refactoring ResponseWriters to at least make them more re-usable. Hope SOLR-1566 <https://issues.apache.org/jira/browse/SOLR-1566> come up with a cleaner solution. On Sat, May 14, 2011 at 3:55

Re: Want to Delete Existing Index & create fresh index

2011-05-14 Thread Gabriele Kahlout
but not contents in that > > > > > > 2011/5/14 François Schiettecatte > > > > > > > You can also shut down solr/lucene, do: > > > > > > > >rm -rf /YourIndexName/data/index > > > > > > > > and restart, the

Re: How to plugin the value of a Field? DocInverterPerField?

2011-05-14 Thread Gabriele Kahlout
I calculate it from search-time + index-time field values. For example, say I want to print the reciprocal of the content field norm (available at index-time) along every document in the results. What's the 'clean' way of doing that? On Sat, May 14, 2011 at 3:42 PM, Markus Jelsma wrote: > I'm not

Re: How to plugin the value of a Field? DocInverterPerField?

2011-05-14 Thread Gabriele Kahlout
It looks like I've to contact with an AddUpdateCommand . On Sat, May 14, 2011 at 12:36 PM, Gabriele Kahlout wrote: > Hello, > > I'm trying to add an extra field to the schema.xml that is only stored, but > with nutch not knowing about it, I don't know how to t

How to plugin the value of a Field? DocInverterPerField?

2011-05-14 Thread Gabriele Kahlout
Hello, I'm trying to add an extra field to the schema.xml that is only stored, but with nutch not knowing about it, I don't know how to tell Solr of its value for each document. I'd like to plugin the computation, something like is done with Similarity, but I'm not sure how to do that. >From SOLR

Re: Want to Delete Existing Index & create fresh index

2011-05-13 Thread Gabriele Kahlout
"curl --fail $solrIndex/update?commit=true -d '*:*'" #empty index [1 ] did u try? On Sat, May 14, 2011 at 7:26 AM, Pawan Darira wrote: > Hi > > I had an existing index created months back. now my database schema has > cha

Editor loads wrong version of IndexSearcher while debugging - how to fix?

2011-05-13 Thread Gabriele Kahlout
Hello, I'm debugging Solr built as a maven project in NB, and when I enter the code of a Lucene dependency, namely org.apache.lucene.search.IndexSearcher.explain(..) the call stack expects this method to be at line 599 while in the editor the class ends at 304. from solr-core's pom.xml:

Re: Coord in queryExplain

2011-05-12 Thread Gabriele Kahlout
You are right! On Thu, May 12, 2011 at 2:54 PM, Ahmet Arslan wrote: > > I'm wondering why the results of coord() are not displayed > > when debugging > > query results, as described in the > > wiki[1< > http://wiki.apache.org/solr/SolrRelevancyFAQ#Why_does_id:archangel_come_before_id:hawkgirl_wh

Coord in queryExplain

2011-05-12 Thread Gabriele Kahlout
Hello, I'm wondering why the results of coord() are not displayed when debugging query results, as described in the wiki[1]. I'd like to see it. Could someone point to how to m

Re: Is it possible to build Solr as a maven project?

2011-05-12 Thread Gabriele Kahlout
On Tue, May 10, 2011 at 3:56 PM, Gabriele Kahlout wrote: > > > On Tue, May 10, 2011 at 3:50 PM, Steven A Rowe wrote: > >> Hi Gabriele, >> >> There are some Maven instructions here (not in Lucene/Solr 3.1 because I >> just wrote the file a couple of days ago):

No more standard query type?

2011-05-11 Thread Gabriele Kahlout
Is the tagged release of solr 3.1 different from the one distributed in the downloads page? It looks like a reproducible bug. svn co -r 1101526 http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_1 solr This is the default query I get from http://localhost:8080/solr/admin/form.jsp: htt

Re: SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
actually something changed, I managed to crawl and index some pages (the other must have to do with regex-urls). Thank you! Was this always necessary? Any pointer discussing why it's needed? On Tue, May 10, 2011 at 5:40 PM, Gabriele Kahlout wrote: > You mean that I should copy it fr

Re: SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
in Solr. It provides most > fields that you need. > > On Tuesday 10 May 2011 17:31:33 Gabriele Kahlout wrote: > > I don't get you, are you talking about conf/schema.xml? That's what I'm > > referring to. Am i supposed to do something with the nutch's > >

Re: SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
gt; > On Tuesday 10 May 2011 16:40:02 Gabriele Kahlout wrote: > > From solr logs: > > > > May 10, 2011 4:33:20 PM org.apache.solr.common.SolrException log > > *SEVERE: org.apache.solr.common.SolrException: ERROR:unknown field > > 'content' * > >

Re: SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
nf/schema.xml: ** in conf/solrindex-mapping.xml: In recent solr I think this has been renamed into text? Solr's conf/schema.xml: via copyField further on in this schema --> * * On Tue, May 10, 2011 at 4:30 PM, Gabriele Kahlout wrote: > It apparently is normal

Re: SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
5-10 02:46:04 +0200 (Tue, 10 May 2011) Does this work for you? All I've done is svn co nutch 1.3 and execute my script which up to now worked. On Tue, May 10, 2011 at 4:11 PM, Gabriele Kahlout wrote: > Hello, > > I'm having trouble getting Solr 3.1 to work with nutch-1.3. I&#

SolrHome ends with /./ - is this normal?

2011-05-10 Thread Gabriele Kahlout
Hello, I'm having trouble getting Solr 3.1 to work with nutch-1.3. I'm not sure where the problem is, but I'm wondering why does the solrHome path end with /./. cwd=/Applications/NetBeans/apache-tomcat-7.0.6/bin SolrHome=/Users/simpatico/apache-solr-3.1.0/solr/./ In the web.xml of solr:

Re: Is it possible to build Solr as a maven project?

2011-05-10 Thread Gabriele Kahlout
...). I'll be trying and report back. Thank you in advance. > > Please write back if you run into any problems. > > Steve > > > From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com] > Sent: Tuesday, May 10, 2011 8:37 AM > To: boutr...@gmail.com > Cc: solr-user@luce

Re: Is it possible to build Solr as a maven project?

2011-05-10 Thread Gabriele Kahlout
and copy > them to their right target locations. > > I'm using netbeans and I'm using the plugin "Automatic Projects" to do > everything inside the IDE. > > Which version of Solr are you using ? > > Ludovic. > > 2011/5/4 Gabriele Kahlout [via L

Re: Solr 4.0

2011-05-09 Thread Gabriele Kahlout
REPOST as a more general question about ivy dependencies: http://stackoverflow.com/questions/5941789/do-ivy-dependency-revisions-have-anything-to-do-with-svns On Mon, May 9, 2011 at 11:31 AM, Gabriele Kahlout wrote: > I think you are talking about this dependency: > > conf=&q

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
Just for the reference. $ svn update At revision 1099940. On Thu, May 5, 2011 at 9:14 PM, Steven A Rowe wrote: > You're welcome, I'm glad you got it to work. - Steve > > > -Original Message----- > > From: Gabriele Kahlout [mailto:gabri...@mysimpatico.com] > &

Re: How do i I modify XMLWriter to write foobar?

2011-05-05 Thread Gabriele Kahlout
I've now tried to write my own QueryResponseWriter plugin[1], as a maven project depending on Solr Core 3.1, which is the same version of Solr I've installed. It seems I'm not able to get rid of some cache. $ xmlstarlet sel -t -c "/config/queryResponseWriter" conf/solrconfig.xml Restarted tomc

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
May 05 20:39:09 CEST 2011 [INFO] Final Memory: 38M/90M [INFO] On Thu, May 5, 2011 at 6:53 PM, Steven A Rowe wrote: > Hi Gabriele, > > On 5/5/2011 at 9:57 AM, Gabriele Kahlout wrote: > > Okay, that sequence w

Re: How do I debug "Unable to evaluate expression using this context" printed at start?

2011-05-05 Thread Gabriele Kahlout
lier remark<http://markmail.org/thread/3y4zqieyjqfi5vl3>. Thank you Chris! On Thu, May 5, 2011 at 2:58 PM, Gabriele Kahlout wrote: > I've tried to re-install solr on tomcat, and now when I launch tomcat in > debug mode I see the following exception relating to solr. It's not e

Re: Is it possible to build Solr as a maven project?

2011-05-05 Thread Gabriele Kahlout
Rowe wrote: > Hi Gabriele, > > The sequence should be > > 1. svn update > 2. ant get-maven-poms > 3. mvn -N -Pbootstrap install > > I think you left out #2 - there was a very recent change to the POMs that > affects the noggit jar name. > > Steve > > > ---

How do I debug "Unable to evaluate expression using this context" printed at start?

2011-05-05 Thread Gabriele Kahlout
I've tried to re-install solr on tomcat, and now when I launch tomcat in debug mode I see the following exception relating to solr. It's not enough to understand the problem (and fix it), but I don't know where to look for more (or what to do). Please help me. Following the tutorial and discussion

Why is org.apache.solr.response.XMLWriter final?

2011-05-05 Thread Gabriele Kahlout
Hello, It's final in the trunk, and has always been since conception in 2006 at revision 372455. Why? -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the email. subject(thi

  1   2   >