Hi Paul,
On Fri, Mar 29, 2013 at 1:38 PM, Paul Bell wrote:
> Last night reading in "Lucene in Action, 2nd edition," I came upon this
> about addDocument(Document, Analyzer): "Adds the document using the
> provided analyzer for tokenization. But be careful! In order for searches
> to work correctl
Hi Adrien,
Thank you for this warning. I think you're pointing out a fundamental
aspect of Lucene of which, given my noob-ness, I was unaware.
Last night reading in "Lucene in Action, 2nd edition," I came upon this
about addDocument(Document, Analyzer): "Adds the document using the
provided analy
On Wed, Mar 27, 2013 at 9:04 PM, Paul Bell wrote:
> Thanks Adrien.
>
> I've scraped together a simple program in the Lucene 4.2 idiom (see below).
> Does this illustrate what you meant by your last sentence?
>
> The code adds/indexes 5 documents all of whose content is identical, but
> whose 'id'
Thanks Adrien.
I've scraped together a simple program in the Lucene 4.2 idiom (see below).
Does this illustrate what you meant by your last sentence?
The code adds/indexes 5 documents all of whose content is identical, but
whose 'id' field is unique ("v1" through "v5"). It then queries the 'id'
f
Hi Paul,
On Wed, Mar 27, 2013 at 1:58 PM, Paul Bell wrote:
> As to the ideas raised in the links you pointed me to: the first link shows
> the instantiation of a Term object via
>
>writer.UpdateDocument(new Term("IDField", *id*), doc);
>
> yet in the 4.2.0 docs I see no Term constructor that
Thanks, Sashidar.
In response to your "P.S.", you raise a reasonable point. I agree that it
would probably be a vain undertaking to try to keep the search index in
real-time sync with the database. I suppose this relationship is rooted in
something like the application's SLA, e.g., "query results
hi,
I think this stack overflow question might be of some help to you-
http://stackoverflow.com/questions/2842500/updating-lucene-index
Note that the constructor method has changed and you might have to specify
the append mode in the indexWriterConfig method. Take a look at this -
http://lucene.a
Hi All,
I've just begun to get my feet wet with Lucene and have a few simple questions:
1. Must the index writer read and index files on disk, or can i create
documents in memory and ask the writer to index them?
2. I think I've seen examples of the behavior I asked about in (1). In these
exam