StartsWith on DrillDown?

2016-11-14 Thread Matt Hicks
I'm trying to add a sub-query to my DrillDownQuery but I keep ending up with no results when I use add(String dim, Query subQuery). I'm trying to query the tags that start with a specific String. Any suggestions of how to do this would be greatly appreciated. I am using Lucene Core 6.3.0. Thank

Re: StartsWith on DrillDown?

2016-11-16 Thread Matt Hicks
Is this simply not possible to accomplish or does nobody on this list know? On Mon, Nov 14, 2016 at 2:39 PM Matt Hicks wrote: > I'm trying to add a sub-query to my DrillDownQuery but I keep ending up > with no results when I use add(String dim, Query subQuery). I'm trying to

Re: StartsWith on DrillDown?

2016-11-16 Thread Matt Hicks
has to do with needing a specific type of query? On Wed, Nov 16, 2016 at 4:05 PM Michael McCandless < luc...@mikemccandless.com> wrote: > Can you post a test case showing the unexpected behavior? > > Mike McCandless > > http://blog.mikemccandless.com > > On Wed, Nov 16, 20

Re: StartsWith on DrillDown?

2016-11-17 Thread Matt Hicks
numeric > range filter down. > > Have you seen the demo facet examples, e.g. > > https://github.com/apache/lucene-solr/blob/master/lucene/demo/src/java/org/apache/lucene/demo/facet/SimpleSortedSetFacetsExample.java > ? > > Are you using SSDV facets or taxonomy facets? >

LeafCollector

2016-12-01 Thread Matt Hicks
I'm trying to write a LeafCollector that filters out duplicates for a specific field. However, looking at the JavaDoc for `collect` it says not to call `IndexSearch.doc` or `IndexReader.document`. How am I supposed to determine the value of a field and then exclude it?

Re: LeafCollector

2016-12-05 Thread Matt Hicks
http://blog.mikemccandless.com > > > On Thu, Dec 1, 2016 at 2:39 PM, Matt Hicks wrote: > > I'm trying to write a LeafCollector that filters out duplicates for a > > specific field. However, looking at the JavaDoc for `collect` it says not > > to call `IndexSearch.do

Facet DrillDown Exclusion

2016-12-05 Thread Matt Hicks
I'm currently drilling down adding a facet path, but I'd like to be able to do the same as a NOT query. Is there any way to do an exclusion drill down on a facet to exclude docs that match the facet while including all others? Thanks

Re: Facet DrillDown Exclusion

2016-12-06 Thread Matt Hicks
dd(new TermQuery(DrillDownQuery.term(indexedField, "Author", "Lisa")), > Occur.MUST_NOT) // do not match documents with "Author/Lisa" in their > facets > .build(); > searcher.search(q, 10); > > Hope this helps > > Shai > > On Tue, Dec 6, 2016 at 1:5

Synchronized Commit?

2017-08-08 Thread Matt Hicks
When I add a document to my index I immediately commit (indexWriter.commit(), taxonomyWriter.commit(), and searcherTaxonomyManager.maybeRefresh()) and then when I do a search I call searcherTaxonomyManager.maybeRefreshBlocking() and then searcherTaxonomyManager.acquire() followed by a search, the n

Name Fuzzy Search

2018-03-20 Thread Matt Hicks
I'm attempting to write a Lucene query to match names giving me the ideal results first.  I presume I should limit it to a minimum of two word matches and use fuzzy matching.  Is there an ideal way to support this?  Should I explicitly have name aliases (like Bob/Robert/Rob) or should I leave that

Update Field on Many Docs

2018-05-08 Thread Matt Hicks
I'm trying to write an efficient update to match with a Query and update all matches with specific fields (while maintaining the other previously set fields on each document).  I see IndexWriter.updateDocValues appears to be the closest solution, but it takes a Term and I'd prefer to use a Query. 

Re: Update Field on Many Docs

2018-05-08 Thread Matt Hicks
, but sufficient. This does work for me, but with one major flaw.  Facets are lost because they aren't loaded into the Document when I search.  Is there any way to retrieve the existing facet fields into the document before I write it back out? On Tue, May 8, 2018 9:02 AM, Matt Hicks m...@outr.