DO NOT REPLY [Bug 35284] New: - CoordConstrainedBooleanQuery + QueryParser support
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35284. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35284 Summary: CoordConstrainedBooleanQuery + QueryParser support Product: Lucene Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P3 Component: Search AssignedTo: lucene-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Attached 2 new classes: 1) CoordConstrainedBooleanQuery A boolean query that only matches if a specified number of the contained clauses match. An example use might be a query that returns a list of books where ANY 2 people from a list of people were co-authors, eg: Lucene In Action would match (Erik Hatcher Otis Gospodneti#263; Mark Harwood Doug Cutting) with a minRequiredOverlap of 2 because Otis and Erik wrote that. The book Java Development with Ant would not match because only 1 element in the list (Erik) was selected. 2) CustomQueryParserExample A customised QueryParser that allows definition of CoordConstrainedBooleanQueries. The solution (mis)uses fieldnames to pass parameters to the custom query. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35284] - CoordConstrainedBooleanQuery + QueryParser support
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35284. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35284 --- Additional Comments From [EMAIL PROTECTED] 2005-06-09 13:05 --- Created an attachment (id=15347) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=15347action=view) CustomQueryParserExample class -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35284] - CoordConstrainedBooleanQuery + QueryParser support
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35284. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35284 --- Additional Comments From [EMAIL PROTECTED] 2005-06-09 13:53 --- Damn. This coord trick works nicely on its own, eg authors:(min_coord:2 Erik Otis Doug) but doesnt work when combined with other queries like this: title:lucene in action AND authors:(min_coord:3 Erik Otis Doug) A result is returned even thought the coord restriction of 3 is NOT satisfied (Doug was not an author). Needs some more investigation. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in full text search
hi, luke is an OpenSource utility which allows you to analyze and modify lucene's index internals. It can be downloaded from http://www.getopt.org/luke/ Bernhard avrootshell wrote: Hello, I'm able to create index file for full text search.And i'm sure it has the required entries as i have traced the traversal path through the tables i have specified. And also documents are added to the index file. But when i specify some string to search,it throws an exception like this. .E Time: 0.234 There was 1 error: 1) testSrch(com.board.fts.FtsSearchCmdTest)java.lang.NullPointerException: null values not allowed at org.apache.commons.collections.map.ReferenceMap.put(ReferenceMap.java:571) at com.sandra.servicer.txtsrch.SrchMan.search(SrchMan.java:108) at com.board.fts.FtsSearchCmd.execute(FtsSearchCmd.java) at com.board.fts.FtsSearchCmdTest.testSrch(FtsSearchCmdTest.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at com.board.fts.FtsSearchCmdTest.main(FtsSearchCmdTest.java) FAILURES!!! Tests run: 1, Failures: 0, Errors: 1 Is there any way to view the contents of index file which has been created? If anyone comes up with some suggesions for this kind of error,I appreciate. TIA, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IndexFileNames
Bernhard Messer wrote: I finished the changes and commited the changes. There are two new classes in package org.apache.lucene.index. org.apache.lucene.index.IndexFileNames contains common lucene related filenames and extensions, the scope of the class itself and it's members are package. org.apache.lucene.index.IndexFileFilter is public and used in FSDirectory to decide whether a file belongs to an lucene index and can be deleted. This looks great! Thanks, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]