flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

Should it be possible to index a single field as both free text and exact text? #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Say I have a book record:

    title: The Hotel New Hampshire
    author: John Irving

It would be useful to be able to retrieve this record both with a filter query 
for (author:John Irving),
and also with a free text search for "John". This is currently impossible, due 
to the Xappy back-end.

One possibility might be to create a "generic" freetext Xappy field, which will 
duplicated filter fields 
which have been marked as also-freetext (the problem here is that we can't 
distinguish such fields 
in freetext searches - we can't have (author:"john").  But in reality this may 
not be a problem.

Original issue reported on code.google.com by bano...@gmail.com on 28 Aug 2009 at 1:20

GoogleCodeExporter commented 9 years ago
Or for that matter, we add the ability to Xappy to be able to specify 
search_by_default=True for EXACTTEXT as 
well as FREETEXT actions. This would make the field available to default 
freetext-type searches.

Original comment by bano...@gmail.com on 28 Aug 2009 at 1:33