RE: Update a field without reindexing the entire document?

2008-03-26 Thread Ard Schrijvers
Hello Otis, I have been looking for something similar for Jackrabbit's lucene index, but I still have some uncertainty about wether I understand correctly what the patches in SOLR-139 supply: Do they just retrieve formerly stored fields of a lucene Document, change some field, and then analyze an

RE: Search not working for indexed words...

2008-02-04 Thread Ard Schrijvers
Hello, your problem stems ( :-) ) from stemming. You can search this list, and probably will find many threads. Last week somebody had the same question, see archive of last week, Regards Ard > > Hi All, > > From past 6 months i am working and using SOLR. Now i am > facing some problem wit

RE: wildcard newbie question

2008-01-31 Thread Ard Schrijvers
> > I have a text field type called courseTitle and it contains > > > > Struts 2 > > > > If I search courseTitle:strut* I get the documents but if I search > > with > > courseTitle:struts* I do not get any results. > > > > Could you please explain why? > > Just a guess: It might be because of

RE: Replacing existing documents

2007-08-22 Thread Ard Schrijvers
Hello, "Recently someone mentioned that it would be possible to have a 'replace existing document' feature rather than just dropping and adding documents with the same unique id." AFAIK, this is not possible. You have the update in lucene, but internally it just does a delete/add operation "We

RE: How to read values of a field efficiently

2007-08-21 Thread Ard Schrijvers
> > > > I am deeply hurt by your distrust. > > > > :-) > > Shame on me :-$ haha :-) >

RE: How to read values of a field efficiently

2007-08-21 Thread Ard Schrijvers
> > you're missing the key piece that Ard alluded to ... the > there is one > > ordere list of all terms stored in the index ... a TermEnum lets you > > iterate over this ordered list, and the > IndexReader.terms(Term) method > > lets you efficiently start at an arbitrary term. if you are only

RE: How to read values of a field efficiently

2007-08-19 Thread Ard Schrijvers
Hello, > > On Mon, 2007-07-30 at 00:30 -0700, Chris Hostetter wrote: > > : Is it possible to get the values from the ValueSource (or from > > : getFieldCacheCounts) sorted by its natural order (from lowest to > > : highest values)? > > > > well, an inverted term index is already a data structure

RE: Too many open files

2007-08-09 Thread Ard Schrijvers
Hello, useCompoundFile set to true, should avoid the problem. You could also try to set maximum open files higher, something like (I assume linux) ulimit -n 8192 Ard > > You're a gentleman and a scholar. I will donate the M&Ms to > myself :). > Can you tell me from this snippet of my solrc

RE: Pagination of results and XSLT.

2007-07-24 Thread Ard Schrijvers
> We do pagination in XSL 1.0 often -- direct from a solr response > right to HTML/CSS/JS. > You get both the start and total rows from the solr response, so I > don't know what else you'd need. I have been using similar xsls like you describe below in the past, butI think after 3 years

RE: reg exp

2007-07-17 Thread Ard Schrijvers
> > In general, the type of feature you are interested in is > typcially caleld > a "PrefixQuery" you can acomplish it with the SolrQueryParser > using "a*" > > http://wiki.apache.org/solr/SolrQuerySyntax > > : example show all docs starting with an "a" or "A", I would > just add an >

RE: reg exp

2007-07-16 Thread Ard Schrijvers
I don't know if there is one, but if you need this kind of search to for example show all docs starting with an "a" or "A", I would just add an extra field only containing the first letter. This is *much* faster in lucene, and for many documents you don't risk the too many boolean clauses (thoug

RE: Solr Search any Lucene Index ?

2007-07-16 Thread Ard Schrijvers
correct analyzers Ard > > Hi, > Thanks for the prompt reply. > But i saw this posting on solr mailing list > http://www.mail-archive.com/solr-user@lucene.apache.org/msg04819.html > please look at this. > > Thanks > Narendra > > > On 7/16/07, Ard

RE: Solr Search any Lucene Index ?

2007-07-16 Thread Ard Schrijvers
Hello, AFAIK, Solr Search is only capable of searching in a Lucene index that is created by Solr (at least, this seems logical to me)...or, the exact same fields and analyzers must have been indexed the way solr would have done it. Ard > > Hi, > Can Solr Search any Lucene Index. If "YES

RE: A few questions regarding multi-word synonyms and parameters encoding

2007-07-12 Thread Ard Schrijvers
Hello, > > but honestly i haven't relaly tried anything like this ... > the code for > parsing the synonyms.txt file probaly splits the individual > synonyms on > whitespace to prodce multiple tokens which might screw you up > ... you may > need to get creative (perhaps use a PatternReplaceFil

RE: Question about synonyms

2007-07-12 Thread Ard Schrijvers
Hello, > > Brievly, what I'm looking for is a query that launch > something like this: > > Giving the user search expression > "A B C D" > > Generated Lucene query : > (myfield:I OR myfield:J OR myfield:O OR myfield:K) > > if someone knows a way to reach this goal, please tell me how, i'm > a

RE: Problems running SOLR 1.2 - documents not being indexed properly

2007-07-09 Thread Ard Schrijvers
Hello Daniel, it sounds strange to me because in SolrCore you can find in initIndex() that locks are removed at initialisation Regards Ard > > Hi > > I'm developing a search application using SOLR/Lucene and I > think I found a > bug. > > I was trying to index more documents and the tot

RE: indexing documents (or pieces of a document) by access controls

2007-06-13 Thread Ard Schrijvers
Hello, > When I had those kind of problems (less complex) with lucene, > the only > idea was to filter from the front-end, according to the ACL policy. > Lucene docs and fields weren't protected, but tagged. Searching was > always applied with a field "audience", with hierarchical values like

RE: indexing documents (or pieces of a document) by access controls

2007-06-13 Thread Ard Schrijvers
Hello, > Hi > > And about the fields, if they are/aren't going to be present on the > responses based on the user group, you can do it in many > different ways > (using XML transformation to remove the undesirable fields, > implementing > your own RequestHandler able to process your group > in

RE: indexing documents (or pieces of a document) by access controls

2007-06-13 Thread Ard Schrijvers
Hello, > Given the requirement to break down a document into separately > controlled pieces, I'd create a servlet that "fronts" the Solr > servlet and handles this conversion. I could think of ways to do it > using Solr, but they feel like unnatural acts. > > As a general comment on ACLs, one

RE: indexing documents (or pieces of a document) by access controls

2007-06-12 Thread Ard Schrijvers
Excuse me, I meant solr ofcourse :-) > For these reasons, I do not think you can achieve with solar

RE: storing the document URI in the index

2007-06-12 Thread Ard Schrijvers
Thanks Yonik and Walter, putting it that way, it does make good sense to not store the transient xml file which it is most of the usecases (I was thinking differently because I do have xml files on file system or over http, like from a webdav call) Anyway, thx for all answers, and again, sry fo

RE: indexing documents (or pieces of a document) by access controls

2007-06-12 Thread Ard Schrijvers
Hello Nate, IMHO, you will not be able to do this in solr unless you accept pretty hard constraints on your ACLs (I will get back to this in a moment). IMO, it is not possible to index documents along with ACLs. ACLs can be very fine grained, and the thing you describe, ACL specific parts of a

RE: storing the document URI in the index

2007-06-12 Thread Ard Schrijvers
ave to set its value when adding documents. Otis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simpy -- http://www.simpy.com/ - Tag - Search - Share - Original Message ---- From: Ard Schrijvers <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Tuesday, June 12,

RE: storing the document URI in the index

2007-06-12 Thread Ard Schrijvers
rawls" some directory with xml files, Regards Ard Schrijvers Yes. Set the field to be store and non-indexed, field type "string" is what I use. > Or is everybody used to storing the contents of a document in the > lucene index (doesn't this imply a much larger in

storing the document URI in the index

2007-06-12 Thread Ard Schrijvers
Hello, is it possible to configure solr to store the document URI in the lucene index (the URI is not an xml field, but just the document's location)? Or is everybody used to storing the contents of a document in the lucene index (doesn't this imply a much larger index though?), so instead of r