Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Not working in case of adding into the same field more than once #252

Open
alexchetv opened this issue Jun 19, 2017 · 1 comment
Open

Not working in case of adding into the same field more than once #252

alexchetv opened this issue Jun 19, 2017 · 1 comment

Comments

@alexchetv
Copy link

If I try to use index function addind content into the same field

function(doc) {
  var result = new Document();
  result.add(doc.a, {"field":"a", "store":"yes"});
  result.add(doc.b, {"field":"a"});
  return result;
}

I get error {"code":500} and in couchdb-lucene.log I see java.io.IOException: Search timed out.

All works fine if we add into different fields:

function(doc) {
  var result = new Document();
  result.add(doc.a, {"field":"a", "store":"yes"});
  result.add(doc.b, {"field":"b"});
  return result;
}
@rnewson
Copy link
Owner

rnewson commented Jul 31, 2017

sorry for late reply. Hm, that really should work. Lucene should just combine them at indexing time (which might not be the effect you want, of course). Was there anything interesting in the log during indexing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants