English 中文(简体)
RavenDB: Grammatical and phonetical analysis?
原标题:

I m a little confused about the level of integration between Lucene.NET and RavenDB. Lucene supports grammatical and phonetical analysis of texts (like word stemming, Metaphone) to allow searches that match the document based on similarity. Now Lucene is used for querying indices, and from what I take from the documentation, also for building them up (see http://ravendb.net/documentation/docs-http-indexes-querying, the last section).

However, the Lucene analyzers that provide grammatical and phonetic analyisis do not seem to be at work. Or are they and I m missing the switch? Or, is there a way to install/create a plugin to get text analyzers into RavenDB?

最佳回答

At the moment it s not possible to customise the analyser, see this thread for a more in-depth discussion.

If you contribute to the discussion here it might get added. You re not the 1st person who has asked for this behaviour.

One possible solution is to pre-tokenise or analyse the test yourself. So what gets added to the index is the modified text. For instance you could change "run" to "run runs runner" etc. Then a search for "runs" would find your document. There is also a fuzzy search that might help, see here for more info

Update this functionality has now been added to RavenDB, see here for more details

问题回答

暂无回答




相关问题
How can I index HTML documents?

I am using Lucene .NEt to do full-text searching. Till now I have been indexing PDF docs, but now I have a few webpages that I need to index. What s the best/easiest way to index HTML documents to ...

Lucene.net: Separate building Index from Searching the Index

I created a website but i have a problem. i want to build once an index und use it. at the moment i have two functions "create a document an store it into the directory" and "searching" when the ...

Lucene .NET 2.3.2 Security Exception - Medium trust Issues

I m only partially able to get Lucene .NET to work on GoDaddy. It throws a security exception on this line: Hits hits = searcher.Search(query, filter); Here are the details of this exception: ...

Lucene.NET in medium trust

How do I make Lucene.NET 2.3.2 run in a medium trust environment? GoDaddy doesn t like it the way it is.

Storing relational data in a Lucene.NET index

I m currently trying to implement a Lucene.NET based search on a large database and I ve hit a snag trying to do a search on what is essentially relational data. At a high level the data I m trying ...

Trouble searching for acronyms in Lucene.NET

I m currently working on a Lucene.NET full-text search implementation. For the most part it s going quite well but I m having a few issues revolving around acronyms in the data... As an example of ...

Lucene.NET on shared hosting

I m trying to get Lucene.NET to work on a shared hosting environment. Mascix over on codeproject outlines here how he got this to work on godaddy. I m attempting this on isqsolutions. Both ...

热门标签